Button
Extends:
src/common/Component.js~Component → Button
Direct Subclass:
Indirect Subclass:
The Button component defines an element which, when clicked, performs an
action.
Attrs
iconThe name of the icon class. If specified, the button will be given a 'has-icon' class name.disabledWhether or not the button is disabled. If truthy, the button will be given a 'disabled' class name, and anyonclickhandler will be removed.loadingWhether or not the button should be in a disabled loading state.
All other attrs will be assigned as attributes on the button element.
Note that a Button has no default class names. This is because a Button can be used to represent any generic clickable control, like a menu item.
Method Summary
| Public Methods | ||
| public |
view(vnode: *): * |
|
| Protected Methods | ||
| protected |
getButtonContent(children: *): * Get the template for the button's content. |
|
Reference
Source
