Search results

ContextMenuSettings

Defines the behavior of the context menu items

Properties

items

ContextMenuItemModel[]

Defines the custom context menu items

<div id='diagram'></div>
let diagram: Diagram = new Diagram({
...
  contextMenuSettings: {   show: true, items: [{
text: 'delete', id: 'delete', target: '.e-diagramcontent', iconCss: 'e-copy'
}],
showCustomMenuOnly: false,
},
...
});
diagram.appendTo('#diagram');

Defaults to undefined

show

boolean

Enables/Disables the context menu items

Defaults to undefined

showCustomMenuOnly

boolean

Shows only the custom context menu items

Defaults to undefined