Ir al contenido

ContextMenuItem

Defined in: export/ContextMenu.ts:4

action: (diagram, part, event) => void

Defined in: export/ContextMenu.ts:8

Callback when the item is clicked.

Diagram

Part | null

MouseEvent

void


optional className?: string

Defined in: export/ContextMenu.ts:16

CSS class for custom styling.


optional enabled?: boolean

Defined in: export/ContextMenu.ts:10

Whether the item is enabled.


label: string

Defined in: export/ContextMenu.ts:6

The label text.


optional separator?: boolean

Defined in: export/ContextMenu.ts:14

Optional separator after this item.


optional visible?: boolean

Defined in: export/ContextMenu.ts:12

Whether the item is visible.