ui.Checkbox

Stay organized with collections Save and categorize content based on your preferences.

A checkbox with a label.

UsageReturns
ui.Checkbox(label, value, onChange, disabled, style)ui.Checkbox
ArgumentTypeDetails
labelString, optionalThe checkbox's label. Defaults to an empty string.
valueBoolean, optionalWhether the checkbox is checked. A null value indicates that the checkbox is in an indeterminate state. Defaults to false.
onChangeFunction, optionalA callback to fire when the value of the checkbox changes. The callback is passed a boolean indicating whether the checkbox is now checked and the checkbox widget.
disabledBoolean, optionalWhether the checkbox is disabled. Defaults to false.
styleObject, optionalAn object of allowed CSS styles with their values to be set for this widget. See style() documentation.