Closed phaistonian closed 3 years ago
Do you have an example API in mind for this feature? How would you like to use it?
Here's a usecase:
In terms of API, I guess you can:
SortableKnob
wrapper component to be hosted inside SortableItem
knob
property with a ref to SortableItem
pointing to the ref assigned to a hosted knob elementI check back the code quickly and this is not trivial to implement. Indeed, the events handling logic is handled at the SortableList level and we would need to maintain a list of all knobs in addition to the items. Once, this is done, I'm not even sure that events will behave like you would expect outside of the knob.
I'm available to provide guidance if you would like to work a on PR though. 🙂
Well, it does not look that hard - really.
I can't find time to put on it, though - hectic days down here.
Perhaps later in the near future.
I think the title does it :-)