Custom Appen Element popMenu

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

image

To remove this menu you could:

  1. 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.

  2. 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.