Constructor
# new DuCheckBox()
Properties:
Name | Type | Description |
---|---|---|
image |
Image
|
The scriptui object representing the image, if any |
label |
StaticText
|
The label, if any |
text |
string
|
The current text |
textChecked |
string
|
The text to display when the checkbox is checked |
defaultText |
string
|
The text to display when the checkbox is unchecked |
checked |
boolean
|
The checked state of the button |
textColor |
DuColor
|
The color of the text of the label |
onClick |
DuCheckBox~onClick
|
The function to execute when the button is clicked |
Methods
# static setChecked(checkedopt)
Sets the checked state of the button
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
checked |
boolean
|
<optional> |
true | The state |
Type Definitions
# onClick()
The function to execute when the button is clicked.