projects/netgrif-components-core/src/lib/search/models/category/search-autocomplete-option.ts
Represents one item in a search autocomplete category options list.
See AutocompleteCategory.
Properties |
icon |
icon:
|
Type : string
|
Optional |
The Material design icon that should be displayed next to the option. No icon will be displayed if no icon is provided. See material website for supported icon list. |
text |
text:
|
Type : string
|
Text that is displayed to the user |
value |
value:
|
Type : T
|
Value of the option, that is used to generate the queries. |
export interface SearchAutocompleteOption<T> {
/**
* Text that is displayed to the user
*/
text: string;
/**
* Value of the option, that is used to generate the queries.
*/
value: T;
/**
* The Material design icon that should be displayed next to the option. No icon will be displayed if no icon is provided.
*
* See [material website]{@link https://material.io/resources/icons} for supported icon list.
*/
icon?: string;
}