brutusin / json-forms

JSON Schema to HTML form generator, supporting dynamic subschemas (on the fly resolution). Extensible and customizable library with zero dependencies. Bootstrap add-ons provided
http://brutusin.org/json-forms
Apache License 2.0
606 stars 168 forks source link

Drag and Drop #110

Open syedtalha opened 6 years ago

syedtalha commented 6 years ago

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

stutteringp0et commented 6 years ago

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

syedtalha commented 6 years ago

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 commented 6 years ago

any pointers on this?

idelvall commented 6 years ago

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