Skip to content

Vizel API / core/src / VizelToolbarDropdownItemView

Interface: VizelToolbarDropdownItemView ​

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

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:20

Whether this option is currently the active formatting state.


isEnabled ​

ts
isEnabled: boolean;

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

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


isFocused ​

ts
isFocused: boolean;

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

Whether this option is the keyboard-focused row.


option ​

ts
option: VizelToolbarAction;

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

The option as supplied by the consumer.

Released under the MIT License.