Checkbox UI component. See Variants for more concrete implementations.
- $mol_check_box - Simple checkbox
- $mol_check_group - Group of checkboxes
- $mol_check_expand - Expander for trees, lists, etc
- $mol_check_icon - Icon checkbox
- $mol_check_list - List of checkboxes
<= Spam $mol_check
title <= spam_title @ \Send me some spam
<= Spam $mol_check_box
title <= spam_title @ \Send me some spam
checked? <=> spam_needed? true
enabled <= spam_enabled false
checked( next? : boolean ) : boolean
Returns checked state of checkbox. User can switch them when checkbox is enabled.
enabled() : boolean
Whether the control is interactive.