Checkbox (from Input)¶
A checkbox which can be used in a form element.
Options¶
- Inherits all from Input.
- checked - Whether the element is checked or not.
- mouse - Enable mouse support.
Properties¶
- Inherits all from Input.
- text - The text next to the checkbox (do not use setContent, use
check.text = ''
). - checked - Whether the element is checked or not.
- value - Same as
checked
.
Events¶
- Inherits all from Input.
- check - Received when element is checked.
- uncheck received when element is unchecked.
Methods¶
- Inherits all from Input.
- check() - Check the element.
- uncheck() - Uncheck the element.
- toggle() - Toggle checked state.
Last update: February 22, 2020