Constructor
new CheckBox(textopt)
CheckBox constructor.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
text | string | <optional> | Text displayed next to the checkbox |
Classes
Methods
selected(selectedopt) → {boolean|CheckBox}
Sets or gets the selection state of the checkbox.
Parameters:
| Name | Type | Attributes | Description |
|---|---|---|---|
selected | boolean | <optional> |
|
Returns:
If called without arguments, returns boolean value, otherwise returns this CheckBox instance.
- Type:
- boolean |
CheckBox