React Diagram - DiagramCustomCommand

An object that provides information about a custom command in the Diagram UI component.

import { DiagramTypes } from "devextreme-react/diagram"

icon

Specifies the custom command's icon.

Type:

String

This property accepts one of the following:

items

Lists command sub items.

Selector: Item
Type:

Array<dxDiagramCustomCommand>

location

Specifies a location for the command or separator on the main toolbar.

Default Value: 'before'

NOTE

This property does not allow you to set the location of the command or separator in the context menu, and history and view toolbars.

Refer to the following section for more information: Specify a Command's Location on the Main Toolbar.

name

Specifies the custom command's identifier.

Type:

String

| Enums.DiagramCommand

Use this name to identify the clicked custom command in the onCustomCommand function.

text

Specifies the custom command's text and tooltip text.

Type:

String