Customizing context menu

Hi,

I am using bpmn.io in my angular project. I installed BPMN.js as a node module and I am trying to customize context menu. i,e I am trying to remove few items and add few more items.

Can you please provide me any sample examples.

Thanks
Vijay

One of the most frequently asked questions in this forum. Here’s an example: https://github.com/bpmn-io/bpmn-js-example-custom-controls

Hi,

Thanks for reply.

I was asking about the below. I want to convert start notation only to Start event and Message Event, i want to hide the other options.

Can you please provide me an example for this.

export var START_EVENT = [
  {
    label: 'Start Event',
    actionName: 'replace-with-none-start',
    className: 'bpmn-icon-start-event-none',
    target: {
      type: 'bpmn:StartEvent'
    }
  },
  {
    label: 'Message Start Event',
    actionName: 'replace-with-message-start',
    className: 'bpmn-icon-start-event-message',
    target: {
      type: 'bpmn:StartEvent',
      eventDefinitionType: 'bpmn:MessageEventDefinition'
    }
  }
];

THanks
Vijay

That’s what the example is about.

but not working in angular

hi Mr
I want to change the language menu

Please do not necrobump old topics. Instead link to this thread from new topic.