Skip to content

Send modified node info in the onChange callback #22

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

matiasgarcia
Copy link

I found that only having the modified tree on the onChange callback it wasn't enough for me since I had to know which node (or object) was modified and who is his father, so I added it.

I think this is particularly useful if you have to do some checks on the modified tree or something else (in my case, each time a node is modified I have to do an AJAX request to update the node position and parent).

@ghemingway
Copy link

I am running into a similar problem, but a slightly different need. I want to know when nodes have been collapsed or expanded. Using the onChange method is great, but I would like line 238 of this pull request to go from this:

this.change(tree, null, null);

to this:

this.change(tree, null, node);

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants