Checkbox

Purpose

This component provides a form control that allows users to choose between two possible states, e.g. on/off, true/false, etc.

Exported Features

cf2:ui.Checkbox

Imported Features

cf2:ObservablePropertyPrototype, cf2:EventTarget

Markup

This component is provided by the ui:checkbox element.

Properties

The following table lists the observable properties associated with this component.

Property Description Type Access
checked The checked state of the checkbox. The initial value of this property can be specified by the checked attribute on the ui:checkbox element. The value of the property defaults to 'false'. boolean read/write

Fallback

If this component is not supported, then it falls back to a static checkbox input control.

Related topics