Skip to content

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

Build a VizelNodeSelectorSpec for the node-type selector.

Parameters ​

ParameterTypeDescription
editorEditorCurrent editor instance — used to compute the active node type and per-row isActive.
nodeTypesreadonly VizelNodeTypeOption[]Available node type options.
isOpenbooleanWhether the popover is currently open.
focusedIndexnumberIndex of the keyboard-focused row.
localeVizelLocale | undefinedOptional locale for translated labels.

Returns ​

VizelNodeSelectorSpec

Released under the MIT License.