frontend-collective / react-sortable-tree

Drag-and-drop sortable component for nested data and hierarchies
https://frontend-collective.github.io/react-sortable-tree/
MIT License
4.9k stars 897 forks source link

How to customize move handler? 🤔 #928

Open talaxasy opened 2 years ago

talaxasy commented 2 years ago

Is it possible to somehow customize the drag and drop trigger? Let's say instead of 3 sticks, insert your own icon or text, whatever? image

prakashari-kpi commented 2 years ago

.rst__moveHandle { background: gray url("") no-repeat center; border: none; box-shadow: none; cursor: grab; } We can customize using this class

arnaudpfu commented 1 year ago

You we can use CSS. However if you want a total control you should set the nodeContentRenderer props. (It takes a component.)