Construct 3 icon

Construct 3

Documentation

Button script interface

Ashley's avatar
Medal
Construct Team Founder
Published 12 Aug, 2019
86 words
<1 min

The IButtonInstance interface derives from IDOMInstance to add APIs specific to the Button plugin.

Button events

"click"

Fired when the button is clicked, or the checkbox state is toggled.

Button APIs

text

The string currently displayed as the button or checkbox label.

tooltip

The string used as the tooltip for the button or checkbox.

isEnabled

A boolean indicating if the control is enabled or disabled.

isChecked

A boolean indicating if the checkbox is checked. For button style controls this is always false.