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 useModeler
but rely onBaseModeler
. Pick only the modules you actually need (excludingcreate-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).
1 Like
Thank you, the second alternative already solves my problem
1 Like
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.