json-forms icon indicating copy to clipboard operation
json-forms copied to clipboard

Drag and Drop

Open syedtalha opened this issue 7 years ago • 4 comments

Feature request: Is it possible to make drag and drop possible in array items?

syedtalha avatar Nov 30 '17 17:11 syedtalha

Are you asking for drag-and-drop re-ordering?

stutteringp0et avatar Dec 01 '17 03:12 stutteringp0et

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.

syedtalha avatar Dec 01 '17 04:12 syedtalha

any pointers on this?

syedtalha avatar Dec 07 '17 08:12 syedtalha

https://github.com/brutusin/json-forms/blob/master/README.md#status

idelvall avatar Dec 14 '17 11:12 idelvall