$typeahead: ReplaySubject<TypeaheadArray> = ... |
Indicates that the typeahead can be potentially open. This signal is typically true when the input is focussed. It may be overridden and set to false when escape is pressed or when an option was selected. canBeOpen: WritableSignal<boolean> = ... |
componentRef?: ComponentRef<SiTypeaheadComponent> |
elementRef: ElementRef<HTMLInputElement> = ... |
foundMatches: Signal<(TypeaheadMatch[] | { atBeginning: boolean, iconClass: (string | undefined), itemSelected: any, matches: number, matchesAllParts: boolean, matchesAllPartsSeparately: boolean, matchesEntireQuery: boolean, option: TypeaheadOption, result: MatchSegment[], stringMatch: boolean, text: string, uniqueMatches: number, uniqueSeparateMatches: number }[] | { active: false, atBeginning: false, iconClass: (string | undefined), itemSelected: any, matches: 0, matchesAllParts: false, matchesAllPartsSeparately: false, matchesEntireQuery: false, option: { option: TypeaheadOption, text: string }, result: { isMatching: false, matches: 0, text: option.text, uniqueMatches: 0 }[], stringMatch: false, text: option.text, uniqueMatches: 0, uniqueSeparateMatches: 0 }[])> = ... |
injector: Injector = ... |
inputTimer: any |
loadingSubscription?: Subscription |
matchSorter: SiTypeaheadSorting = ... |
overlay: Overlay = ... |
overlayRef?: OverlayRef |
processedSearch: Signal<(TypeaheadMatch[] | { atBeginning: boolean, iconClass: (string | undefined), itemSelected: any, matches: number, matchesAllParts: boolean, matchesAllPartsSeparately: boolean, matchesEntireQuery: boolean, option: TypeaheadOption, result: MatchSegment[], stringMatch: boolean, text: string, uniqueMatches: number, uniqueSeparateMatches: number }[])> = ... |
query: WritableSignal<string> = ... |
selectionCounter: WritableSignal<number> = ... |
Set the options of the typeahead. Has to be either an Array or an Observable of an Array of options (string or object) siTypeahead: InputSignal<Typeahead> = ... |
sourceSubscription?: Subscription |
Screen reader only label for the autocomplete list. typeaheadAutocompleteListLabel: InputSignal<TranslatableString> = $localize`:@@SI_TYPEAHEAD.AUTOCOMPLETE_LIST_LABEL:Suggestions` |
Defines the index of the item which should automatically be selected. typeaheadAutoSelectIndex: InputSignalWithTransform<number, unknown> = 0 |
Defines whether the host value should be cleared when a value is selected. typeaheadClearValueOnSelect: InputSignalWithTransform<boolean, unknown> = false |
Defines whether the typeahead can be closed using escape. typeaheadCloseOnEsc: InputSignalWithTransform<boolean, unknown> = true |
This option will be shown at the end of the typeahead. Use it to allow users to create new options on the fly. Use the {{ query }} parameter in translation values to include the current text from the input. typeaheadCreateOption: InputSignal<(TranslatableString | undefined)> = ... |
If set, the typeahead will at minium have the width of the connected input field. typeaheadFullWidth: InputSignalWithTransform<boolean, unknown> = false |
Defines an optional template to use as the typeahead match item instead of the one built in. Gets the TypeaheadOptionItemContext passed to it. typeaheadItemTemplate: InputSignal<(TemplateRef<TypeaheadOptionItemContext> | undefined)> = ... |
Indicates whether the typeahead is currently loading. When using TypeaheadOptionSource , this is controlled by the isLoading() method or automatically set to true while fetching options. typeaheadLoading: WritableSignal<boolean> = false |
Defines whether and how to require to match with all the tokens if typeaheadTokenize is enabled. - no does not require all of the tokens to match. - once requires all of the parts to be found in the search. - separately requires all of the parts to be found in the search where there is not an overlapping different result. - independently requires all of the parts to be found in the search where there is not an overlapping or adjacent different result. ('independently' also slightly changes sorting behavior in the same way.) typeaheadMatchAllTokens: InputSignal<("once" | "no" | "separately" | "independently")> = 'separately' |
Defines the number of characters the value of the host needs to be before a typeahead is displayed. Use 0 to have it display when focussing the host (clicking or tabbing into it). typeaheadMinLength: InputSignal<number> = 1 |
Defines whether multiselection of typeahead is possible with checkboxes. typeaheadMultiSelect: InputSignalWithTransform<boolean, unknown> = false |
Emits when the create option is selected. It will emit the current search query. typeaheadOnCreateOption: OutputEmitterRef<string> = ... |
Emits an Event when a typeahead full match exists. A full match occurs when the entered text is equal to one of the typeahead options. The event is a TypeaheadMatch typeaheadOnFullMatch: OutputEmitterRef<TypeaheadMatch> = ... |
Emits an Event when the input field is changed. typeaheadOnInput: OutputEmitterRef<string> = ... |
Emits an Event when a typeahead match is selected. The event is a TypeaheadMatch typeaheadOnSelect: OutputEmitterRef<TypeaheadMatch> = ... |
Emits whenever the typeahead overlay is opened or closed. typeaheadOpenChange: OutputEmitterRef<boolean> = ... |
Defines the name of the field/property the option string is in when the typeahead options are objects. typeaheadOptionField: InputSignal<string> = 'name' |
typeaheadOptions: Signal<{ option: TypeaheadOption, text: string }[]> = ... |
If typeaheadScrollable is true , defines the number of items visible at once. typeaheadOptionsInScrollableView: InputSignal<number> = 10 |
Defines the maximum number of items added into the DOM. Default is 20 and 0 means unlimited. typeaheadOptionsLimit: InputSignal<number> = 20 |
Turns on/off the processing (searching and sorting) of the typeahead options. Is used when searching and sorting is done externally. typeaheadProcess: InputSignalWithTransform<boolean, unknown> = true |
Makes the typeahead scrollable and sets its height. Uses typeaheadOptionsInScrollableView and typeaheadScrollableAdditionalHeight . typeaheadScrollable: InputSignalWithTransform<boolean, unknown> = false |
If typeaheadScrollable is true , defines the number of additional pixels to be added the the bottom of the typeahead to show users that it is scrollable. typeaheadScrollableAdditionalHeight: InputSignal<number> = 13 |
typeaheadSearch: Signal<Match<TypeaheadOption>[]> = ... |
Skip the sorting of matches. If the value is true , the matches are sorted according to SiTypeaheadSorting . typeaheadSkipSortingMatches: InputSignalWithTransform<boolean, unknown> = false |
Defines whether to tokenize the search or match the whole search. typeaheadTokenize: InputSignalWithTransform<boolean, unknown> = true |
Defines the number of milliseconds to wait before displaying a typeahead after the host was focused or a value inputted. typeaheadWaitMs: InputSignal<number> = 0 |
unprocessedSearch: Signal<{ active: false, atBeginning: false, iconClass: (string | undefined), itemSelected: any, matches: 0, matchesAllParts: false, matchesAllPartsSeparately: false, matchesEntireQuery: false, option: { option: TypeaheadOption, text: string }, result: { isMatching: false, matches: 0, text: option.text, uniqueMatches: 0 }[], stringMatch: false, text: option.text, uniqueMatches: 0, uniqueSeparateMatches: 0 }[]> = ... |
overlayPositions: ConnectionPositionPair[] = ... |