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

Send modified node info in the onChange callback #22

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);

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

Successfully merging this pull request may close these issues.

2 participants