Vizel API / core/src / VizelToolbarDropdownAction
Interface: VizelToolbarDropdownAction
Defined in: packages/core/src/toolbar/actions.ts:32
A dropdown toolbar action that groups multiple sub-actions. When clicked, displays a popover with the nested options.
Properties
getActiveOption?
optional getActiveOption?: (editor) => VizelToolbarAction | undefined;Defined in: packages/core/src/toolbar/actions.ts:46
Returns the currently active option to display in the trigger
Parameters
| Parameter | Type |
|---|---|
editor | Editor |
Returns
VizelToolbarAction | undefined
group
group: string;Defined in: packages/core/src/toolbar/actions.ts:40
Group identifier for visual separation
icon
icon: VizelIconName;Defined in: packages/core/src/toolbar/actions.ts:38
Icon name for the dropdown trigger
id
id: string;Defined in: packages/core/src/toolbar/actions.ts:34
Unique action identifier
label
label: string;Defined in: packages/core/src/toolbar/actions.ts:36
Display label for the dropdown trigger
options
options: VizelToolbarAction[];Defined in: packages/core/src/toolbar/actions.ts:44
The nested actions to display in the dropdown
type
type: "dropdown";Defined in: packages/core/src/toolbar/actions.ts:42
Marks this as a dropdown action