-The Diagram component supports custom commands within tool panels and menus. To define a custom command item, specify a string **command**.**name** value (different from [Command](/Documentation/ApiReference/UI_Components/dxDiagram/Types/#Command) type values) and implement the [onCustomCommand](/Documentation/ApiReference/UI_Components/dxDiagram/Configuration/#onCustomCommand) handler. You can also specify custom command icons and text. The following code snippet demonstrates a custom command that imports an empty value into the Diagram to clear component content:
0 commit comments