New answers tagged command
I woulf just make it undeletablr. So wehen you select everything and delete it everything is gone except this one soecial node. You should also make the node use a special icon or color.
To disable the option is a general way to go, is more appropriate considering that you should always work towards error prevention. My suggestion is to clearly change the appearance of the non-deletable node in comparison with the default ones, and additionally show a tooltip or something indicating why this node is special and cannot be deleted. Over time ...
The first option is the best. It's poor UX to invite someone to do something, and then tell them they can't do it. Think about Donald Norman's concept of 'Affordance'. A handle tells people that they can pull a door, while a plate tells them that they can push it. Your are giving people a handle on a push door here. Use a common pattern, like greying out ...
If something isn't going to be clear to the user then you better make it clear. Why the central node cannot be deleted may be considered as 'invisible logic'. Thus, it is better to show an error message than to disable the action. This is in contrast to disabled 'post comment' buttons that are enabled so long there is some text in the comment - users can ...
Top 50 recent answers are included