Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

get_node not working [Resolved] #1776

Closed
lk77 opened this issue Jun 8, 2017 · 1 comment
Closed

get_node not working [Resolved] #1776

lk77 opened this issue Jun 8, 2017 · 1 comment

Comments

@lk77
Copy link

lk77 commented Jun 8, 2017

Hello,

i have a problem with the method get_node,
it return false and i don't know why.

i've tried :
tree.jstree(true).get_node('#1')
tree.jstree(true).get_node('1_anchor')
tree.jstree(true).get_node(1)
tree.jstree(true).get_node($('#1')

the doc says "child DOM element, ID string, selector, etc" so i don't what is the problem.

thanks

@lk77
Copy link
Author

lk77 commented Jun 8, 2017

Hello,

i found the solution,
node can't be altered before loading like i was trying to do.
if i use the loaded.jstree event instead of loading.jstree event its works

@lk77 lk77 changed the title get_node not working get_node not working [Resolved] Jun 8, 2017
@vakata vakata closed this as completed Jun 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants