Dropdown
Extends:
Direct Subclass:
Indirect Subclass:
The Dropdown component displays a button which, when clicked, shows a
dropdown menu beneath it.
Attrs
buttonClassNameA class name to apply to the dropdown toggle button.menuClassNameA class name to apply to the dropdown menu.iconThe name of an icon to show in the dropdown toggle button.caretIconThe name of an icon to show on the right of the button.labelThe label of the dropdown toggle button. Defaults to 'Controls'.accessibleToggleLabelThe label used to describe the dropdown toggle button to assistive readers. Defaults to 'Toggle dropdown menu'.onhideonshow
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:
| * |
Reference
Source
