# ui.Checkbox.setValue

<br />

Sets whether the checkbox is checked.

<br />

Returns this checkbox.

| Usage | Returns |
|---|---|
| `Checkbox.setValue(value, *trigger*)` | ui.Checkbox |

| Argument | Type | Details |
|---|---|---|
| this: `ui.checkbox` | ui.Checkbox | The ui.Checkbox instance. |
| `value` | Boolean | Whether the checkbox is checked. A null value indicates the checkbox is in an indeterminate state. |
| `trigger` | Boolean, optional | Whether to trigger onChange callbacks when the checked property changes. Defaults to true. |