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

How to access the "grid" object from MuuriComponent to get the order of items? #63

Open
gouterz opened this issue Feb 10, 2022 · 2 comments

Comments

@gouterz
Copy link

gouterz commented Feb 10, 2022

The docs mention grid.getItems() to get all the items. But in my use case, I would like to get the order of items after each drag & drop action.

How could this be done?

@frodolfo-duclo
Copy link

Similarly, I wish there's a setter equivalent of the getItems (i.e. setItems) API. I have this feature in my app where I need to save and persist the current items that have been resized and re-ordered, and allow the main grid component to read these items (with the order and styles retained) whenever they are needed for display. Any workaround for this in the mean time?

@Mohamed-Raid
Copy link

same issue here

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

3 participants