Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 903 Bytes

readme.md

File metadata and controls

45 lines (29 loc) · 903 Bytes

$mol_check

Checkbox UI component. See Variants for more concrete implementations.

Variants

Usage examples

Basic

<= Spam $mol_check
	title <= spam_title @ \Send me some spam

Box

<= Spam $mol_check_box
	title <= spam_title @ \Send me some spam
	checked? <=> spam_needed? true
	enabled <= spam_enabled false

Properties

Basic

checked( next? : boolean ) : boolean

Returns checked state of checkbox. User can switch them when checkbox is enabled.

box, expand

enabled() : boolean

Whether the control is interactive.