khan4019/tree-grid-directive

Watch expand_level changing from controller

Opened this issue · 1 comments

Hi, thanks for the great library. It is easy and well customize tools.

But I notice there is only 2 watch event, which is treeData & expandTo, what I trying to achieve now is reinitialize/ redraw/ recreate the entire tree grid directive when programmatically changing expand-level parameter.

Or there is anyway can work around with this? I just want to let user have a drop down option for expand level, after they selected, the tree will auto expand to that level.

Thanks.

did you found a solution ? i want to change expand-level value from $scope too dynamicly