Closed Hesesses closed 8 years ago
this is a show stopper for the application I am working on
I haven't done a lot of work on this, so YMMV, but this seemed to work in my initial tests.
In the function _add_branch_tolist, look for this statement: _return b.expanded = b.level < expandlevel; and replace with this _return b.expanded = b.level <= expandlevel;
Let me know if that works for you (or submit the PR yourself :-))
Are you sure you're looking at the latest version of the directive? That line doesn't appear in that function.
I have a solution for this issue, but it has a caveat - you can never collapse the tree to less than the expand-level. I'm not sure this will meet the need here, so all comments welcome, before I submit a pull request.
The fix for this is in release 0.4.0 of this directive - closing now.
html:
JS:
And later call
tree-grid only displays the three elements (United States of America, India, Bangladesh) not expanded