new SearchHintItem(text: string, options?: object): SearchHintItem
Initializes a new instance of the {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.search.SearchHintItem} class.
class
The text that comes back from a search hint provider might have embedded markup.
We bind these highlights to an items source on an autocomplete box.
We however want the selection from the autocomplete to not contain
embedded markup.
That is the purpose of this class - to provide two views of the hints - with and without markup.
Parameters
text: string
The text (with markup) to initialize
Optional options: object
Optional parameter that sets the options for emphasizing text that might also contain unsafe HTML content.
Initializes a new instance of the {@link geocortex.essentialsHtmlViewer.mapping.infrastructure.search.SearchHintItem} class.
The text that comes back from a search hint provider might have embedded markup. We bind these highlights to an items source on an autocomplete box. We however want the selection from the autocomplete to not contain embedded markup. That is the purpose of this class - to provide two views of the hints - with and without markup.