How can I change the items in this menu? Or remove that button from my pad

How can I change the items in this menu? Or remove that button from my pad

To remove this menu you could:
Exclude the create-append-anything module completely: Do not use Modeler but rely on BaseModeler. Pick only the modules you actually need (excluding create-append-anything) - this will also remove the âCreate elementâ menu in the palette.
Remove only the append menu: Create ContextPadProvider that removes the context pad entry that trigger the menu. Example:
this._contextPad.registerProvider(500,this);
CustomProvider.prototype.getContextPadEntries = function(element) {
return function(entries) {
delete entries.append;
return entries;
};
};
However if you want to change the menu entries, you can use a custom popup menu (âbpmn-appendâ) provider to do so (similar approach to the example above).
Thank you, the second alternative already solves my problem
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.