Skip to content

Commit

Permalink
adding throttle to hasChildreen function
Browse files Browse the repository at this point in the history
  • Loading branch information
Lenin Martinez committed Jul 23, 2018
1 parent 46f7e57 commit 9792bfe
Show file tree
Hide file tree
Showing 12 changed files with 2,286 additions and 117 deletions.
6 changes: 3 additions & 3 deletions demo.le/demo.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@ export default function ($scope, $timeout) {
]

_.each($scope.data, value => {
appendChilds(40, value.id)
appendChilds(10, value.id)
})

const tasks = _.filter($scope.data, o => {
return (o.parent)
})

_.each(tasks, value => {
appendChilds(10, value.id)
appendChilds(2, value.id)
})

console.log($scope.data.length)
Expand Down Expand Up @@ -174,7 +174,7 @@ export default function ($scope, $timeout) {
$scope.data.push(
{
id: uuid(),
name: name, mec: 'mec1', level: 1, parent: parent, isCollapsed: true,
name: name, mec: 'mec1', level: 1, parent: parent, isCollapsed: false,
tasks: [
{
name: name,
Expand Down
345 changes: 344 additions & 1 deletion dist/angular-gantt-core.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 9792bfe

Please sign in to comment.