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​
| Name | Type |
|---|---|
query | Nil<string> |
params | GetSelectOptionsParams |
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​
| Name | Type |
|---|---|
value | T |
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​
| Name | Type |
|---|---|
value | T |
Returns​
Observable<boolean>