jaredly/treed

Toggle editing mode

Opened this issue · 2 comments

Is there a way to switch off editing of the tree? I tried to find a switch to temporarily disable editing and just allow the collapse command. Maybe I'm just overlooking something. But amazing thing so far.

No, that's not a feature I've implemented yet. Neat idea, though. What's the use case?

Hey i use it for a CMS to define the page structure etc. but of course i don't want the user to delete the structure by accident.. current work around is that i check in the change listener which was the last event (collapse etc.) and do an undo if its not in an "edit mode". not best UX but it does the job for the moment.