Constructor
new Switch(text, checked, onClick)
Parameters:
| Name | Type | Description |
|---|---|---|
text |
string | |
checked |
boolean | |
onClick |
function | function called on click event |
| Name | Type | Description |
|---|---|---|
text |
string | |
checked |
boolean | |
onClick |
function | function called on click event |