khan4019 / tree-grid-directive

Need one or more maintainer for this! comment or email me if you are interested
http://khan4019.github.io/tree-grid-directive/test/treeGrid.html
347 stars 183 forks source link

Expanding fix and new feature #109

Closed TrueDub closed 8 years ago

TrueDub commented 8 years ago

This pull request contains:

Fix for #84 - ensuring expand-level is respected when tree_data is loaded dynamically. This has a side-effect of ensuring the tree cannot be collapsed below this initial starting level, which may not be optimal. Any advice on how to achieve this would be welcome.

New feature - allow the dev to programmatically expand the tree to a certain node, by passing the expandingproperty value of that node into a $rootscope variable which the directive watches. Again, there may be a better way of doing this than using $rootscope, and if so any advice would be welcome.