class ToggleButton

Extends:
UIComponent

Description:

ToggleButton UI component that is similar to a Button component, but can be selected.

Constructor

constructor([text])

ToggleButton constructor.

Parameters:

Name Type Description

[text]

string

Button text

Members

Methods

From this class:

Inherited from UIComponent:

Examples:

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