Checkbox
A small box that toggles a check mark on tap.
Installation
Usage
src/app/app.ts
- This example also uses Label. Tapping the label doesn't toggle the checkbox.
- The box is 20 pixels, but its tap area is 44 by 44 pixels, a comfortable size for a finger.
- The check mark pops in and out when the state changes.
Disabled
A disabled checkbox dims and ignores taps.
Listen without a signal
changed emits the new state after each tap.
API
UiCheckbox
UiCheckbox also has a public toggle() method, which does nothing while disabled.
Related
- Switch: an on/off control for settings
- Radio Group: pick one of several options
- Label
