constructor([text])

Class: Button.

Description:

Button constructor.

Parameters:

Name Type Description

[text]

string

Button text

Examples:

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