Skip to content

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? ​

ts
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 ​

ParameterType
editorEditor

Returns ​

VizelToolbarAction | undefined


group ​

ts
group: string;

Defined in: packages/core/src/toolbar/actions.ts:41

Group identifier for visual separation


icon ​

ts
icon: VizelIconName;

Defined in: packages/core/src/toolbar/actions.ts:39

Icon name for the dropdown trigger


id ​

ts
id: string;

Defined in: packages/core/src/toolbar/actions.ts:35

Unique action identifier


label ​

ts
label: string;

Defined in: packages/core/src/toolbar/actions.ts:37

Display label for the dropdown trigger


options ​

ts
options: VizelToolbarAction[];

Defined in: packages/core/src/toolbar/actions.ts:45

The nested actions to display in the dropdown


type ​

ts
type: "dropdown";

Defined in: packages/core/src/toolbar/actions.ts:43

Marks this as a dropdown action

Released under the MIT License.