ng2-tree icon indicating copy to clipboard operation
ng2-tree copied to clipboard

Disable moving but allow custom menu

Open seanmcilvenna opened this issue 5 years ago • 0 comments

I need to be able to disable the user's ability to move files/folders, while allowing the user to right light and see a custom context menu so they can add a new folder.

I can disable moving by using the "static" option, but in order to show the custom right-click context menu, "static" has to be true.

This could be fixed by simply ignoring "static" option with respect to rightMenu/leftMenu options.

Additionally, it would be nice to have an event for onCreatingNewFolder that would allow me to set the id of a newly created folder. Right now, the id is auto-generated, which is not ideal for my use-case.

seanmcilvenna avatar Nov 19 '18 18:11 seanmcilvenna