And imported it to new modeler instance, where i had a few next modules and it is works fine. Problably is problem with my custom rule provider. Maybe bad event (‘shape.remove’) or something else ? Condition is for illustration, but this rule is not executed.
Ok, priority and event elements.delete from recommended topic works fine, icon with trash - delete element is hidden. But i would like to show icon (trash) for delete and in my rule show some notification for user, why he can’t to delete this element and after this notification return false and element won’t be deleted. Exists something like this event ? Thank you.
I’m little confused, how i should start with overriding deleting action.
I have empty skelet, extend ContextPadProvider, but i don’t know how should i to start. Which method should i override ? You sent to me link to this part : … var deleteAllowed = rules.allowed(‘elements.delete’, { elements: [ element ] });
But i don’t know, how i integrate it to me custom class. Thanks a lot for advice.