Vizel API / core/src / VizelToolbarDropdownAction
Interface: VizelToolbarDropdownAction
Defined in: packages/core/src/toolbar/actions.ts:33
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:47
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:41
Group identifier for visual separation
icon
icon: VizelIconName;Defined in: packages/core/src/toolbar/actions.ts:39
Icon name for the dropdown trigger
id
id: string;Defined in: packages/core/src/toolbar/actions.ts:35
Unique action identifier
label
label: string;Defined in: packages/core/src/toolbar/actions.ts:37
Display label for the dropdown trigger
options
options: VizelToolbarAction[];Defined in: packages/core/src/toolbar/actions.ts:45
The nested actions to display in the dropdown
type
type: "dropdown";Defined in: packages/core/src/toolbar/actions.ts:43
Marks this as a dropdown action