Skip to content

Tiles component - how to get current order of items #4843

Answered by waterplea
kozurkiewicz asked this question in Q&A
Discussion options

You must be logged in to vote

You can watch for order change. It's a map of original index to new index. We had to do that because moving items directly in DOM, rather than using CSS order property, caused iframes inside items to be reloaded every time they move. See examples on the docs page:
https://taiga-ui.dev/components/tiles

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by waterplea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants