Multiple lists with drag-and-drop functionality
Closed this issue · 1 comments
Disclaimer: This is not a problem/issue. I just wanted to ask, and as far as I understand, this is the best way to contact/ask.
I'm wondering if it is possible to create multiple lists, maybe nested, and drag & drop items between those lists? Or this requires significant changes & effort?
My use case is simple, I would like to create separate categories like "todo", "in progress", "done" and be able to move tasks between those categories or any other scenario where list items need to be grouped but still maintain drag-and-drop functionality in the categories and between the categories.
I was simply thinking something like this:
<DragList
sections={[
{ title: "To Do", subTitle: 'maybe', data: ["Task 1", "Task 2"] },
{ title: "In Progress", data: ["Task 3"] },
{ title: "Done", data: ["Task 4", "Task 5"] }
]}
sectionStyle= ...maybe...
...
/>
based on the number of sections, it will render multiple lists or something like that. Again I am not sure about the complexity.
Or Is there an easy way to achieve this?
@gunayanil : this unfortunately would likely require SectionList
, which feels like a heavy lift. Someone could potentially fork this package to create that -- which would be pretty cool -- but I suspect it'll take a bit more work (e.g. should sections themselves be draggable, etc).
Thanks for the question!