Skip to content

Vizel API / core/src / VizelToolbarDropdownItemView

Interface: VizelToolbarDropdownItemView

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

Item-data shape surfaced to the framework VizelToolbarDropdown component for each option in the popover listbox.

The skeleton pre-evaluates isActive and isEnabled against the runtime editor so the component renders without recomputing those predicates inline. isFocused mirrors the component's keyboard navigation cursor and drives the is-focused className.

Properties

isActive

ts
isActive: boolean;

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

Whether this option is currently the active formatting state.


isEnabled

ts
isEnabled: boolean;

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

Whether this option's run can fire (drives disabled).


isFocused

ts
isFocused: boolean;

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

Whether this option is the keyboard-focused row.


option

ts
option: VizelToolbarAction;

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

The option as supplied by the consumer.

Released under the MIT License.