Search results

ContextMenuSettingsModel

Interface for a class ContextMenuSettings

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');

show

boolean

Enables/Disables the context menu items

showCustomMenuOnly

boolean

Shows only the custom context menu items