constructor([text])

Class: ToggleButton.

Description:

ToggleButton constructor.

Parameters:

Name Type Description

[text]

string

Button text

Examples:

this.button1 = new ToggleButton().text("Click Me");
this.button2 = new ToggleButton("Click Me");