NEURALNG

PUBLIC CONTRACT

AutoComplete API

Models

valueTValue | string | nullnull Committed value; creates valueChange.
querystring'' Editable input text; creates queryChange.

Data inputs

optionsreadonly TOption[][] Immutable local or remote result source.
optionLabelstring'label' Display label path; nested paths work.
optionValuestring'value' Committed value path; nested paths work.
optionDisabledstring'disabled' Disabled state path.
optionGroupstring'' Optional group label path.
dataMode'local' | 'remote''local' Own filtering or accept remote results.
valueMode'option' | 'text''option' Commit mapped values or free text.
filterMode'contains' | 'startsWith' | 'endsWith''contains' Local match strategy.
filterBystring'' Comma-separated searchable property paths.
filterLocalestring'' Locale for case folding.
compareWithfunctionObject.is Custom committed-value equality.
limitnumber50 Maximum rendered results.

Behavior inputs

minLengthnumber | undefined1 Minimum query length before search.
delaynumber250 Debounce time in milliseconds.
forceSelectionbooleantrue Reject unmatched text in option mode.
completeOnFocusbooleanfalse Search when input receives focus.
showDropdownbooleanfalse Shows the reveal-all button.
clearablebooleanfalse Shows clear while mutable and non-empty.
autoCompletestring'off' Native autocomplete attribute.

State, labels and styling inputs

loadingbooleanfalse Busy state and loading content.
disabledbooleanfalse Native disabled state.
readonlybooleanfalse Focusable inspection without mutation.
requiredbooleanfalse Native and Field required state.
invalidbooleanfalse Invalid ARIA and visual state.
pendingbooleanfalse Busy ARIA form state.
touchedbooleanfalse Forms interaction state.
dirtybooleanfalse Forms mutation state.
namestring'' Template-driven form name.
fluidbooleanfalse Fills available inline size.
placeholderstringlocale Localized input placeholder override.
emptyLabelstringlocale Localized empty result override.
loadingLabelstringlocale Localized loading override.
clearLabelstringlocale Clear button accessible label.
dropdownLabelstringlocale Dropdown button accessible label.
ariaLabelstring'' Direct combobox accessible name.
autoCompleteIdstringgenerated Stable control id override.
dropdownIconClassstring'nt-chevron-down' Dropdown Neural Icon class.
clearIconClassstring'nt-x' Clear Neural Icon class.
loadingIconClassstring'nt-loader-3 nt-spin' Busy Neural Icon classes.
unstyledbooleanfalse Removes NeuralNg visual classes.
autoCompleteClassstring'' Additive root class.
classesNeuralAutoCompleteClasses{} Typed additive slot classes.

Outputs

valueChangeTValue | string | null Committed model changes.
queryChangestring Editable query changes.
searchNeuralAutoCompleteSearchEvent Debounced query, requestId and reason.
selectedNeuralAutoCompleteSelectEvent User commit with option, previous value and source.
clearedNeuralAutoCompleteClearEvent Explicit clear with previous value and query.
opened / closedvoid Popover visibility lifecycle.
invalidInputNeuralAutoCompleteInvalidInputEvent Rejected force-selection query.
touchvoid Native input blur.

Methods

focus(options?: FocusOptions)

Moves DOM focus to the native input.

reset()

Clears value/query, pending search and panel without a user selection event.

Typed template directives

neuralAutoCompleteOption

Context: $implicit, option, resolved, label, value, index, active, selected, disabled

neuralAutoCompleteGroup

Context: $implicit, group

neuralAutoCompleteEmpty

Context: $implicit localized label

neuralAutoCompleteLoading

Context: $implicit localized label

neuralAutoCompleteDropdownIcon

Context: $implicit, className

neuralAutoCompleteClearIcon

Context: $implicit, className

Typed class slots

rootinputGroupinputclearButtondropdownButtonloadingIndicatoriconpanellistgroupoptionactiveOptionselectedOptiondisabledOptionemptyMessageloadingMessage