CheckBox()
Add checkbox to dialog view
Constructor
CheckBox(id: number, text: string)
CheckBox(id: number, text: string, defaultChecked: boolean)
Parameters
| Parameters | Type | Description |
|---|---|---|
| id | number | Unique identifier of the checkbox, the id is used in Dialog:getValueById() |
| text | string | Custom text next to the checkbox |
| defaultChecked | boolean | Optional initial checked state |
Notes
- The third parameter is optional
- Set
defaultCheckedtotrueif you want the checkbox selected by default - When a default value is provided, it takes priority over previously saved dialog state