AutoCompleteHighlighters Class
Provides pre-built result highlighters for AutoComplete.
Item Index
Methods
- charMatch static
- charMatchCase static
- charMatchFold static
- phraseMatch static
- phraseMatchCase static
- phraseMatchFold static
- startsWith static
- startsWithCase static
- startsWithFold static
- subWordMatch static
- subWordMatchCase static
- subWordMatchFold static
- wordMatch static
- wordMatchCase static
- wordMatchFold static
Methods
charMatch
-
query
-
results
Highlights any individual query character that occurs anywhere in a result. Case-insensitive.
Returns:
charMatchCase
-
query
-
results
Case-sensitive version of charMatch()
.
Returns:
charMatchFold
-
query
-
results
Accent-folding version of charMatch()
.
Returns:
phraseMatch
-
query
-
results
Highlights the complete query as a phrase anywhere within a result. Case- insensitive.
Returns:
phraseMatchCase
-
query
-
results
Case-sensitive version of phraseMatch()
.
Returns:
phraseMatchFold
-
query
-
results
Accent-folding version of phraseMatch()
.
Returns:
startsWith
-
query
-
results
Highlights the complete query as a phrase at the beginning of a result. Case-insensitive.
Returns:
startsWithCase
-
query
-
results
Case-sensitive version of startsWith()
.
Returns:
startsWithFold
-
query
-
results
Accent-folding version of startsWith()
.
Returns:
subWordMatch
-
query
-
results
Highlights portions of results in which words from the query match either whole words or parts of words in the result. Non-word characters like whitespace and certain punctuation are ignored. Case-insensitive.
Returns:
subWordMatchCase
-
query
-
results
Case-sensitive version of subWordMatch()
.
Returns:
subWordMatchFold
-
query
-
results
Accent-folding version of subWordMatch()
.
Returns:
wordMatch
-
query
-
results
Highlights individual words in results that are also in the query. Non-word characters like punctuation are ignored. Case-insensitive.