ui.Checkbox.setValue

Sets whether the checkbox is checked.

Returns this checkbox.

UsageReturns
Checkbox.setValue(value, trigger)ui.Checkbox
ArgumentTypeDetails
this: ui.checkboxui.CheckboxThe ui.Checkbox instance.
valueBooleanWhether the checkbox is checked. A null value indicates the checkbox is in an indeterminate state.
triggerBoolean, optionalWhether to trigger onChange callbacks when the checked property changes. Defaults to true.