Skip to content

TypeaheadOptionItemContext documentation

An interface to define the context of a typeahead item template
Properties
index: number
item: TypeaheadOption
match: TypeaheadMatch
query: string

Types Documentation

A singular item to be used in the typeahead. Can be either a string or an object.
A typeahead match, which is a processed typeahead option.
Properties
atBeginning: boolean
iconClass?: string
itemSelected?: boolean
matches: number
matchesAllParts: boolean
matchesAllPartsSeparately: boolean
matchesEntireQuery: boolean
option: TypeaheadOption
result: MatchSegment[]
stringMatch: boolean
text: string
uniqueMatches: number
uniqueSeparateMatches: number
A segment of a TypeaheadMatch , which is a matching or non-matching segment of a typeahead option.
Properties
isMatching: boolean
matches: number
text: string
uniqueMatches: number

Except where otherwise noted, content on this site is licensed under MIT License.