ng2-tree
ng2-tree copied to clipboard
Disable moving but allow custom menu
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.