-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Return changed widgets instead of all widgets after a 'change' event #164
Comments
Hi, Right now |
Hello @troolee , what do you mean by 'probably changed' ? I think it would be great to have only the items that their parameters changed. I checked the code a bit and I saw some code about nodes being |
During a movement of a node other items could be affected (change their position). I mark these nodes as |
The logic of Good job on the awesome library by the way! |
I will. Thank you! |
The If I have a one column layout with two widget of the same size and swap them. Without an ID (which the library does not support) how would you represent that in the resulting Also, are new and removed nodes also considered I would suggest to continue sending all of the grid's items and let the user handle the changes as he needs. Unless I'm wrong in my understanding of the library ... correct me if I'm wrong. |
I'm talking about this : https://github.com/troolee/gridstack.js#onchangeitems
Why would we need the information about items that didn't change position or size ?
Wouldn't it be more practical to return the items that changed and not all of the items?
The text was updated successfully, but these errors were encountered: