Checkbox
Extends:
src/common/Component.js~Component → Checkbox
Direct Subclass:
The Checkbox component defines a checkbox input.
Attrs
stateWhether or not the checkbox is checked.classNameThe class name for the root element.disabledWhether or not the checkbox is disabled.loadingWhether or not the checkbox is loading.onchangeA callback to run when the checkbox is checked/unchecked.childrenA text label to display next to the checkbox.
Method Summary
| Public Methods | ||
| public |
view(vnode: *): * |
|
| Protected Methods | ||
| protected |
getDisplay(): * Get the template for the checkbox's display (tick/cross icon). |
|
| protected |
Run a callback when the state of the checkbox is changed. |
|
Public Methods
Protected Methods
protected getDisplay(): * source
Get the template for the checkbox's display (tick/cross icon).
Return:
| * |
Reference
Source
