-
-
Notifications
You must be signed in to change notification settings - Fork 34
Set any subtree as collapsed #46
Comments
Hi Fer, Attached file. I want to have the highlighted section to be collapsed when I open root item but so far no success. Here is my object.
|
@gsdiama :: The approach that you suggested is not possible because the collapsed object is generated in the ion-tree JS file so it does not care what collapsed value you pass in the task variable. |
Hi @gsdiama , I've updated @nilaykothari90 's issue #23 I have added an extra attribute to the directive (collapsedLevel) in order to collapse certain levels of the tree:
I haven't released a new version since I'd like to test it a bit more in depth, but you can find the changes under the collapsedLevel-attribute branch on github: Could you please @gsdiama confirm this is solving your issue too? |
It works for me. Thanks Fer for the quick help. |
Hi @fer, thanks a lot for the ionic-tree plugin, collapsedLevel-attribute is work well when level is 3 and 4, but level 5 it didn't work, can you help me fix this? |
Sure thing @MinhDT94 .. but cannot reproduce it though :/ Do you mind adding a screenshot, please? |
Hi,
First of all thank you for your plugin.
I'm trying to show some subtrees as collapsed and another ones as not collapsed.
For that I would like to set the call as:
And in the $scope.tasks:
I have tried withouth success. Is that possible?
Thanks in advance!
Yours faithfully,
gsdiama
The text was updated successfully, but these errors were encountered: