react-sortablejs icon indicating copy to clipboard operation
react-sortablejs copied to clipboard

Support dynamic options

Open sebakerckhof opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

Sortable allows us to change many options on the fly (e.g. change the group with Sortable.option('group', ...). However, this react binding only supports changing disabled on the fly in the componentDidUpdate method...

Describe the solution you'd like It would be useful if other options, like group, can also be set dynamically.

Describe alternatives you've considered Alternatively, if the component would give us a ref to the Sortable instance, we could do it ourselves.

sebakerckhof avatar May 02 '22 09:05 sebakerckhof

+1

A ref to the ReactSortable instance would be really useful.

daviedR avatar May 16 '22 11:05 daviedR

This commit implements dynamic options https://github.com/SortableJS/react-sortablejs/commit/64c17c85b72ce4618ee014f0e2053d6e3e1cb60b

CasperVerswijvelt avatar Apr 06 '23 14:04 CasperVerswijvelt