Skip to content

Vizel API / core/src / VizelToolbarDropdownTriggerSpec

Interface: VizelToolbarDropdownTriggerSpec

Defined in: packages/core/src/builders/toolbar-dropdown.ts:33

Trigger button metadata. The trigger advertises the popover as a listbox via aria-haspopup="listbox" and reflects the open state in aria-expanded. The visible icon + label follow the currently-active option (when getActiveOption is supplied) — for an unset state the dropdown's own icon + label are used.

Properties

attrs

ts
attrs: object;

Defined in: packages/core/src/builders/toolbar-dropdown.ts:39

ARIA attrs for the trigger button.

aria-expanded

ts
aria-expanded: boolean;

aria-haspopup

ts
aria-haspopup: "listbox";

iconName

ts
iconName: VizelIconName;

Defined in: packages/core/src/builders/toolbar-dropdown.ts:35

Icon name rendered inside the trigger.


label

ts
label: string;

Defined in: packages/core/src/builders/toolbar-dropdown.ts:37

Localized title / tooltip for the trigger button.

Released under the MIT License.