SimpleComboBoxDirective<T>
Extends
Type Parameters
| Type Parameter | Default type |
|---|---|
T extends ComboBoxItem | ComboBoxItem |
Constructors
Constructor
new SimpleComboBoxDirective<T>(options): SimpleComboBoxDirective<T>;
Parameters
| Parameter | Type |
|---|---|
options | SimpleComboBoxDirectiveOptions<T> |
Returns
SimpleComboBoxDirective<T>
Overrides
BaseComboBoxDirective.constructor
Properties
| Property | Modifier | Type | Inherited from |
|---|---|---|---|
_buttons | public | Set<Btn> | BaseComboBoxDirective._buttons |
id | readonly | string | BaseComboBoxDirective.id |
Accessors
buttons
Get Signature
get buttons(): Btn[];
Returns
Btn[]
Inherited from
searchPlaceholder
Get Signature
get searchPlaceholder(): string;
Returns
string
Inherited from
BaseComboBoxDirective.searchPlaceholder
subtitle
Get Signature
get subtitle(): string;
Returns
string
Inherited from
BaseComboBoxDirective.subtitle
title
Get Signature
get title(): string;
Returns
string
Inherited from
Methods
addButton()
addButton(btn): void;
Parameters
| Parameter | Type |
|---|---|
btn | Btn |
Returns
void
Inherited from
BaseComboBoxDirective.addButton
centerOnMobile()
centerOnMobile(): boolean;
Returns
boolean
Inherited from
BaseComboBoxDirective.centerOnMobile
dismiss()
dismiss(): void;
Returns
void
Inherited from
getAllItems()
getAllItems(): T[];
Returns
T[]
Inherited from
BaseComboBoxDirective.getAllItems
getContent()
getContent(): Element;
Returns
Element
Inherited from
BaseComboBoxDirective.getContent
getItems()
getItems(): T[];
Returns
T[]
Inherited from
BaseComboBoxDirective.getItems
getPosition()
getPosition(): MousePosition;
Returns
Inherited from
BaseComboBoxDirective.getPosition
getSelected()
getSelected(): T[];
Returns
T[]
Inherited from
BaseComboBoxDirective.getSelected
getSelectedItem()
getSelectedItem(): T;
Returns
T
selectItem()
selectItem(key): void;
Parameters
| Parameter | Type |
|---|---|
key | string |
Returns
void
Inherited from
BaseComboBoxDirective.selectItem
setParent()
setParent(parent): void;
Parameters
| Parameter | Type |
|---|---|
parent | any |
Returns
void
Inherited from
BaseComboBoxDirective.setParent
setSearch()
setSearch(search): void;
Parameters
| Parameter | Type |
|---|---|
search | string |
Returns
void
Inherited from
BaseComboBoxDirective.setSearch
setSelected()
setSelected(items): void;
Parameters
| Parameter | Type |
|---|---|
items | T[] |
Returns
void
Overrides
BaseComboBoxDirective.setSelected
showSearch()
showSearch(): boolean;
Returns
boolean