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

Drag Handle

Open impactvelocity opened this issue 1 year ago • 4 comments

Love what you have made!!

Learning so much by reading the source. Fantastic job.

I would love a drag handle ref option.

packages/react-arborist/src/components/row.tsx maybe expose optionally the dragRef ?

Thanks!

impactvelocity avatar Jul 20 '22 20:07 impactvelocity

Thank you!

Help me understand. Do you mean you want to control where in the row you can begin a drag? Can you help me understand what you are building?

jameskerr avatar Jul 21 '22 17:07 jameskerr

Yes, where the control could be begin drag. Like a drag handle

React Dnd example of drag handle: https://react-dnd.github.io/react-dnd/examples/customize/handles-and-previews

Gif of what I am building:

https://share.getcloudapp.com/JruoERRK

In my example, I have a few action buttons, and drag can be a bit sensitive. So having lets say the icon (i have a cusor-move on ) would be the drag handle, so dragging becomes more intentional action from the user.

impactvelocity avatar Jul 21 '22 21:07 impactvelocity

@jameskerr Do you have an email? I can pay for your time for this feature and the drop cursor component. Also, if you have spare time for some maybe so other react stuff. :)

If not, no worries!

impactvelocity avatar Jul 21 '22 22:07 impactvelocity

That app looks cool! Yes I understand now. I'll see what I can do.

I haven't thought about accepting payments, but I'll look into the GitHub sponsorships if you're feeling generous. Thank you for the offer.

jameskerr avatar Jul 22 '22 04:07 jameskerr