NEURALNG

PUBLIC CONTRACT

Select API

Inputs

NameTypeDefaultPurpose
optionsreadonly TOption[][] Data-driven options.
optionLabelstring'label' Display and accessible label path.
optionValuestring'value' Model value path.
optionDisabledstring'disabled' Disabled-state path.
optionIconstring'iconClass' Option icon path.
valueTValue | nullnull Two-way Signal model.
compareWithfunctionObject.is Custom value equality.
placeholderstring'Select an option' Empty value label.
emptyLabelstring'No options available' Empty list message.
loadingLabelstring'Loading options' Loading message.
clearLabelstring'Clear selection' Clear button accessible label.
ariaLabelstring'' Combobox and listbox label.
selectIdstring'' Explicit trigger id.
iconClassstring'nt-chevron-down' Dropdown icon.
loadingIconstring'nt-loader-3 nt-spin' Loading icon.
clearablebooleanfalse Shows clear action.
disabledbooleanfalse Disables the native trigger.
readonlybooleanfalse Focusable inspection without mutation.
required / invalidbooleanfalse ARIA and visual field states.
pending / touched / dirtybooleanfalse Forms state contract.
namestring'' Template-driven name.
loadingbooleanfalse Blocks interaction and announces busy.
virtualScrollbooleanfalse Overscanned visible range.
virtualItemSizenumber42 Fixed option height.
virtualScrollHeightnumber256 Viewport height.
virtualOverscannumber3 Extra rendered rows.
fluidbooleanfalse Fills inline size.
appendTo'self' | 'body''self' Panel ownership.
unstyledbooleanfalse Removes visual classes.
selectClassstring'' Additive root class.
classesNeuralSelectClasses{} Typed slot classes.

Outputs

valueChangeTValue | null Generated by the value model.
selectionChangeNeuralSelectChange User selection with value, previous value, option and source.
clearedNeuralSelectClear Explicit clear action.
openChangeboolean Panel visibility.
touchvoid Focus leaves the closed control.

Methods

focus(options?: FocusOptions) => void

Focuses the trigger.

reset() => void

Closes and restores null.

toggle() => void

Toggles when enabled.

Option API

neural-option requires value and label; it also accepts disabled and iconClass. Do not combine projected options with a non-empty options array.

Typed class slots

roottriggervalueplaceholderdropdownIconclearButtonpanellistoptionactiveOptionselectedOptiondisabledOptionoptionIconemptyMessageloadingMessage