Dropdown
Extends:
Direct Subclass:
Indirect Subclass:
The Dropdown
component displays a button which, when clicked, shows a
dropdown menu beneath it.
Attrs
buttonClassName
A class name to apply to the dropdown toggle button.menuClassName
A class name to apply to the dropdown menu.icon
The name of an icon to show in the dropdown toggle button.caretIcon
The name of an icon to show on the right of the button.label
The label of the dropdown toggle button. Defaults to 'Controls'.accessibleToggleLabel
The label used to describe the dropdown toggle button to assistive readers. Defaults to 'Toggle dropdown menu'.onhide
onshow
The children will be displayed as a list inside of the dropdown menu.
Static Method Summary
Static Public Methods | ||
public static |
initAttrs(attrs: *) |
Method Summary
Public Methods | ||
public |
getMenu(items: *): * |
|
public |
oncreate(vnode: *) |
|
public |
oninit(vnode: *) |
|
public |
view(vnode: *): * |
Protected Methods | ||
protected |
getButton(children: *): * Get the template for the button. |
|
protected |
getButtonContent(children: *): * Get the template for the button's content. |
Static Public Methods
public static initAttrs(attrs: *) source
Params:
Name | Type | Attribute | Description |
attrs | * |
Public Methods
public oncreate(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
public oninit(vnode: *) source
Params:
Name | Type | Attribute | Description |
vnode | * |
Protected Methods
protected getButton(children: *): * source
Get the template for the button.
Params:
Name | Type | Attribute | Description |
children | * |
Return:
* |
protected getButtonContent(children: *): * source
Get the template for the button's content.
Params:
Name | Type | Attribute | Description |
children | * |
Return:
* |