react-multi-select
react-multi-select copied to clipboard
Ordering of selected items
Given any thought of ordering the selected items? Something like hamburgers to reorder selected items Thanks!
Do you mean to have the ability to drag items inside the list or do you mean to have some sort of sort function?
draggable items could be awesome!
Sounds interesting. It means that we will need to store the order somewhere because unfortunately the selectedItems list is recreated every time. I'll look into it.
Hey,
I think this can be done quite easily if the lib can also export defaults components used Sortable is easy to setup, as just need to:
- add
<div className="sortable-list">
on top of the actual destination list. - and use HOC
sortable
on selectedItemRenderer.
Maybe this is the best way to do it ?
Hey @sabativi, thank you for looking into this.
Would you like to give this feature a go and try and issue a PR for it?
It seems #117 was not merged. So it's still not possible to wrap the default components into a sortable HOC, right?
Sorry @lukaspili I think he never got to finishing his PR. I'd be happy to push a change if you'd like to write it.
Thanks for the quick response. At this point I'm just evaluating several options - including multi-select.