Vizel API / core/src / buildVizelNodeSelectorSpec
Function: buildVizelNodeSelectorSpec()
ts
function buildVizelNodeSelectorSpec(
editor,
nodeTypes,
isOpen,
focusedIndex,
locale): VizelNodeSelectorSpec;Defined in: packages/core/src/builders/node-selector.ts:64
Build a VizelNodeSelectorSpec for the node-type selector.
Parameters
| Parameter | Type | Description |
|---|---|---|
editor | Editor | Current editor instance — used to compute the active node type and per-row isActive. |
nodeTypes | readonly VizelNodeTypeOption[] | Available node type options. |
isOpen | boolean | Whether the popover is currently open. |
focusedIndex | number | Index of the keyboard-focused row. |
locale | VizelLocale | undefined | Optional locale for translated labels. |