Expand my Community achievements bar.

SOLVED

Disable 'delete' in context menu of embedded component

Avatar

Former Community Member

We have a component (conditionsContainer) that is only ever used by embedding it in other components.  We would like to disable the context menu for this conditionsContainer component, so that it cannot be removed.  

Currently, we prohibit deletion of the conditionsContainer component with the use of a beforedelete event listener that returns false.  For obvious UX reasons, however, we would like to remove the ability to click delete.  Using the edit bar (which can be customized without a delete button) is not an option.

How can this be achieved?

1 Accepted Solution

Avatar

Correct answer by
Level 10
1 Reply

Avatar

Correct answer by
Level 10