Skip to main content

Interface: SelectOptionsProvider<T>

Any service or other that provides an array of SelectOption should implement this interface for consistency and interoperability.

Type parameters​

Name
T

Implemented by​

Methods​

getOptions​

â–¸ getOptions(query, params): Observable<(SelectOption<T> | SelectOptionGroup<T>)[]>

Given the query, will return a filtered array of SelectOption that all matches.

Parameters​

NameType
queryNil<string>
paramsGetSelectOptionsParams

Returns​

Observable<(SelectOption<T> | SelectOptionGroup<T>)[]>

Defined in​

lib/models/select-option.ts:50


getValueOption​

â–¸ getValueOption(value): Observable<SelectOption<T>>

Given a value, will return the SelectOption corresponding that value.

Parameters​

NameType
valueT

Returns​

Observable<SelectOption<T>>

Defined in​

lib/models/select-option.ts:55


hasOptionFor​

â–¸ hasOptionFor(value): Observable<boolean>

Returns true if this provider has a SelectOption that is linked to the given value.

Parameters​

NameType
valueT

Returns​

Observable<boolean>

Defined in​

lib/models/select-option.ts:60