Vizel API / core/src / VizelToolbarAction
Interface: VizelToolbarAction
Defined in: packages/core/src/toolbar/actions.ts:9
A single toolbar action definition.
Properties
group
group: string;Defined in: packages/core/src/toolbar/actions.ts:17
Group identifier for visual separation
icon
icon: VizelIconName;Defined in: packages/core/src/toolbar/actions.ts:15
Icon name from the Vizel icon system
id
id: string;Defined in: packages/core/src/toolbar/actions.ts:11
Unique action identifier
isActive
isActive: (editor) => boolean;Defined in: packages/core/src/toolbar/actions.ts:19
Check if this action is currently active
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
boolean
isEnabled
isEnabled: (editor) => boolean;Defined in: packages/core/src/toolbar/actions.ts:21
Check if this action can be executed
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
boolean
label
label: string;Defined in: packages/core/src/toolbar/actions.ts:13
Display label
run
run: (editor) => void;Defined in: packages/core/src/toolbar/actions.ts:23
Execute the action
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
void
shortcut?
optional shortcut?: string;Defined in: packages/core/src/toolbar/actions.ts:25
Optional keyboard shortcut label for tooltip