json-forms
json-forms copied to clipboard
Drag and Drop
Feature request: Is it possible to make drag and drop possible in array items?
Are you asking for drag-and-drop re-ordering?
Yes.
I did try using jquery UI to tag the item tbody as sortable, but I guess the library is constantly recomputing the index positions so the rows end up coming back to their original position.
The sortable feature did work on the fields themselves, so I was able to reorder member fields up and down by drag-drop.
As an alternative, it would be just as good a feature if there is a move up move down button on each item, but since it is just as complex, I'd say a drag and drop would make much more sense.
I'd be happy to make a pull request, if I just am pointed in the right direction.
any pointers on this?
https://github.com/brutusin/json-forms/blob/master/README.md#status