Table of Contents

behavior: check

Standard checkbox button implementation. This behavior is pretty simple: on click it toggles :checked state flag on the element. You can assign this behavior to other elements that you would like to behave as a “toggle”.

Elements

that have this behavior applied by default:

And tristate checkbox:

Attributes

that this behavior knows about:

For the tristate checkbox the checked value may have following values

Events

Together with the standard set of events (mouse, keyboard, focus) behavior: radio generates:

Value

type json::value::V_BOOL, reflects current status of :checked state flag.

Tristate checkbox accepts three values:

json::value(true), json::value(false) and json::value() (undefined)