Defines the behavior of the context menu items
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
boolean
Enables/Disables the context menu items
Defaults to undefined
boolean
Shows only the custom context menu items
Defaults to undefined