Using x-sort and x-for to edit json #4383
-
I am creating a small software, fully web based, to help a friend here publish some art works in a more interactive way. I have a list of pages and I wanted to make this list sortable, so that you can reorder pages, and the page structure is defined and saved into a js object, that the user downloads as a json file. So I have my variable named project like this then, I created a page list using x-for, and added x-sort to allow for reordering pages. reorder_page(item, position, context) { If I could 'reset' the x-sort after my handler function, so that it won't reapply the changes when disabled, I think that this could solve it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Fixed in #4361 |
Beta Was this translation helpful? Give feedback.
You can't. It's not even merged yet.
well, you can install it from github (maybe) with
not sure if that will work fully