Skip to content

BPMN Panel API / Panel Types / ToolbarItem

Type Alias: ToolbarItem

ts
type ToolbarItem = 
  | string
  | ToolbarNodeItem
  | ToolbarEdgeItem;

Defined in: features/panels/variants/bpmn/types/panel/graph/toolbar/toolbar-item.ts:696

Toolbar item - node or edge

Can be specified as string (simple) or object (detailed).

See

Examples

String shortcuts

json
"items": ["startEvent", "endEvent"]

Mixed configuration

json
"items": [
  "startEvent",
  {
    "id": "quick-task",
    "bpmnType": "task",
    "typeName": "WFTaskInstance",
    "events": [{ "name": "onObjectCreate", "actions": [{ "name": "create" }] }]
  },
  {
    "id": "connection",
    "bpmnType": "bpmn:SequenceFlow",
    "request": {
      "linkName": "WFConnectorInstance"
    }
  }
]