SearchEngineComboBoxDirective<E, T>
Extends
ComboBoxDirective<T,SearchEngineComboBoxDirectiveOptions<E,T>>
Type Parameters
| Type Parameter | Default type |
|---|---|
E extends SearchResultEntry | SearchResultEntry |
T extends ComboBoxItem | ComboBoxItem |
Constructors
Constructor
new SearchEngineComboBoxDirective<E, T>(options): SearchEngineComboBoxDirective<E, T>;
Parameters
| Parameter | Type |
|---|---|
options | SearchEngineComboBoxDirectiveOptions<E, T> |
Returns
SearchEngineComboBoxDirective<E, T>
Overrides
ComboBoxDirective<T, SearchEngineComboBoxDirectiveOptions<E, T>>.constructor
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
_buttons | public | Set<Btn> | ComboBoxDirective._buttons |
id | readonly | string | ComboBoxDirective.id |
Accessors
buttons
Get Signature
get buttons(): Btn[];
Returns
Btn[]
Inherited from
ComboBoxDirective.buttons
engine
Get Signature
get engine(): SearchEngine<SearchResult<E>>;
Returns
SearchEngine<SearchResult<E>>
loadingMessage
Get Signature
get loadingMessage(): string;
Returns
string
loadingMoreMessage
Get Signature
get loadingMoreMessage(): string;
Returns
string
parameters
searchPlaceholder
Get Signature
get searchPlaceholder(): string;
Returns
string
Inherited from
ComboBoxDirective.searchPlaceholder
subtitle
Get Signature
get subtitle(): string;
Returns
string
Inherited from
ComboBoxDirective.subtitle
title
Get Signature
get title(): string;
Returns
string
Inherited from
ComboBoxDirective.title
Methods
addButton()
addButton(btn): void;
Parameters
| Parameter | Type |
|---|---|
btn | Btn |
Returns
void
Inherited from
ComboBoxDirective.addButton
centerOnMobile()
centerOnMobile(): boolean;
Returns
boolean
Inherited from
ComboBoxDirective.centerOnMobile
dismiss()
dismiss(): void;
Returns
void
Overrides
ComboBoxDirective.dismiss
getContent()
getContent(): Element;
Returns
Element
Overrides
ComboBoxDirective.getContent
getItems()
getItems(): T[];
Returns
T[]
getLoadingStatus()
getLoadingStatus(items?): string;
Parameters
| Parameter | Type |
|---|---|
items | T[] |
Returns
string
getPosition()
getPosition(): MousePosition;
Returns
Inherited from
ComboBoxDirective.getPosition
getSelected()
getSelected(): T[];
Returns
T[]
Inherited from
ComboBoxDirective.getSelected
isLoading()
isLoading(): boolean;
Returns
boolean
selectItem()
selectItem(item): void;
Parameters
| Parameter | Type |
|---|---|
item | T |
Returns
void
setParent()
setParent(parent): void;
Parameters
| Parameter | Type |
|---|---|
parent | any |
Returns
void
Inherited from
ComboBoxDirective.setParent
setResult()
setResult(result): void;
Parameters
| Parameter | Type |
|---|---|
result | SearchResult<E> |
Returns
void
setSearch()
setSearch(search): void;
Parameters
| Parameter | Type |
|---|---|
search | string |
Returns
void
Inherited from
ComboBoxDirective.setSearch
setSelected()
setSelected(items): void;
Parameters
| Parameter | Type |
|---|---|
items | T[] |
Returns
void
Overrides
ComboBoxDirective.setSelected
showSearch()
showSearch(viewportMode): boolean;
Parameters
| Parameter | Type |
|---|---|
viewportMode | ReactorViewportMode |
Returns
boolean