File

projects/netgrif-components-core/src/lib/search/models/category/search-autocomplete-option.ts

Description

Represents one item in a search autocomplete category options list.

See AutocompleteCategory.

Index

Properties

Properties

icon
icon: string
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: string
Type : string

Text that is displayed to the user

value
value: T
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;
}

result-matching ""

    No results matching ""