Vizel API / core/src / buildVizelToolbarDropdownSpec
Function: buildVizelToolbarDropdownSpec()
ts
function buildVizelToolbarDropdownSpec(
dropdown,
editor,
isOpen,
focusedIndex): VizelToolbarDropdownSpec;Defined in: packages/core/src/builders/toolbar-dropdown.ts:69
Build a VizelToolbarDropdownSpec for the toolbar dropdown.
Parameters
| Parameter | Type | Description |
|---|---|---|
dropdown | VizelToolbarDropdownAction | The dropdown action definition (id, options, getActiveOption). |
editor | Editor | Current editor instance — used to pre-evaluate isActive / isEnabled for each option and to resolve the active-option icon / label for the trigger. |
isOpen | boolean | Whether the popover is currently open. |
focusedIndex | number | Index of the keyboard-focused option. |