Vizel API / core/src / VizelToolbarAction
Interface: VizelToolbarAction
Defined in: packages/core/src/toolbar/actions.ts:10
A single toolbar action definition.
Properties
group
group: string;Defined in: packages/core/src/toolbar/actions.ts:18
Group identifier for visual separation
icon
icon: VizelIconName;Defined in: packages/core/src/toolbar/actions.ts:16
Icon name from the Vizel icon system
id
id: string;Defined in: packages/core/src/toolbar/actions.ts:12
Unique action identifier
isActive
isActive: (editor) => boolean;Defined in: packages/core/src/toolbar/actions.ts:20
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:22
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:14
Display label
run
run: (editor) => void;Defined in: packages/core/src/toolbar/actions.ts:24
Execute the action
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
void
shortcut?
optional shortcut?: string;Defined in: packages/core/src/toolbar/actions.ts:26
Optional keyboard shortcut label for tooltip