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

Example of onCreate, onRename, onDelete

Open supersyntx opened this issue 2 years ago • 3 comments

I cannot get it to work. It'll be really helpful if anyone can share an example as the documentation doesn't have it.

I'm using nextjs with typescript.

supersyntx avatar Jul 27 '23 14:07 supersyntx

+1

mawnir avatar Jan 18 '24 16:01 mawnir

Have a look at the hooks being implemented in this PR. Apparently, they are called whenever their corresponding action is executed (eg rename on enter, move on drag&drop, etc) or hotkeys are pressed (eg shift+a for creating a folder) - does that help you? 😉

CHE1RON avatar Jan 19 '24 14:01 CHE1RON

Note to improve documentation here.

jameskerr avatar Feb 07 '24 17:02 jameskerr