Button

Native button, can also be used as checkbox and radio button.

Modulerequire("gui")
TypeClass
InheritsView

Class methods

create(title)

Create a normal button with title.

Parameters

Return

Button

create(options)

Create a button by reading options.

Parameters

Return

Button

Methods

setTitle(title)

Set button title.

Parameters

getTitle()

Return the button title.

Return

String

setChecked(checked)

Set checked state of checkbox or radio.

Parameters

isChecked()

Return whether checkbox or radio is checked.

Return

Boolean

Events

onClick(self)

Emitted when button is clicked.

Parameters

Preventable

No.