You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had a need to disable a few (or all) nodes immediately after finishing loading based on some app state and logic but the ready.jstree doesn't seem to set the selectedNodes here which makes it difficult to tell what to disable for me. I've tested with setting the selectedNodes in this event hook and it seems to work well on the initial loaded content. Would you accept a PR if I add the following two lines into the ready.jstree event?
let selNodes = Ember.A(this.get('treeObject').jstree(true).get_selected(true));
this.set('selectedNodes', selNodes);
Thanks,
The text was updated successfully, but these errors were encountered:
ashrafhasson
changed the title
selectedNodes are not set after ready.jstree event
selectedNodes not set after ready.jstree event
Jul 4, 2017
ashrafhasson
changed the title
selectedNodes not set after ready.jstree event
selectedNodes not set on ready.jstree event
Jul 4, 2017
Hi, thanks for the great addon! :)
I had a need to disable a few (or all) nodes immediately after finishing loading based on some app state and logic but the
ready.jstree
doesn't seem to set theselectedNodes
here which makes it difficult to tell what to disable for me. I've tested with setting theselectedNodes
in this event hook and it seems to work well on the initial loaded content. Would you accept a PR if I add the following two lines into theready.jstree
event?Thanks,
The text was updated successfully, but these errors were encountered: