-
Notifications
You must be signed in to change notification settings - Fork 12
Open

Description
Thank you for creating a simple and clear example that works!
I wanted the tree initially collapsed and defined expanded:false
in $scope.options
in the controller as follows:
$scope.options = {
expanded: false,
expandOnClick: true, ...
but it didn't seem to have any effect, the tree was fully expanded initially.
I made a small change in \demo\dist\angular-tree-widget.js
and it worked, but I thought you might want to check it out.
//expanded all the nodes
if (node.expanded === undefined && node.children != undefined) {
// node.expanded = true;
// dk changed to false
node.expanded = false;
}
Once again, thank you for a brilliant piece of work!
Metadata
Metadata
Assignees
Labels
No labels