Control type checkbox

default.control

Outputs a checkbox control

Output a checkbox control with the name "foo"

{{control "foo" control-type="checkbox"}}

or just

{{control "foo"}}

if the controltype property for the "foo" property in the model schema has been set to "checkbox"

Succesful control sends value

Source:
See:
To Do:
  • explain how value gets defined

Methods

(static) initialize()

Sets valueAttribute to checked

Source:

(static) normalize()

Massages values of non-boolean controls

Source:

(static) normalize()

Removes initial select cue option if present when an option with an actual value is selected

Source:

(static) prepare()

Marshalls options and values

Checks for any values which may exist in the resource bundle properties files.

If so, the result is passed to Larynx.Phrase using the property’s phrase key appended with ".values"

Any resulting string (if any) is then split using commas as the delimiter.

Source:

(static) prepare()

Uses valueAttribute to ensure correct value is set

Source: