Button Class Reference

The Button JavaScript class. A simplified Button Qt widget. More...

Properties

String label
 Set the text on the button. More...
 
String callback
 Use this to assign the name of another function. This function will be triggered automatically when the button is pressed. More...
 

Detailed Description

The Button JavaScript class. A simplified Button Qt widget.

This example creates a button with the label "Set Colour" that will call a function that sets the colour of something whenever the button is pressed.

var setter = new Button();
setter.label = "Set Colour";
setter.callback = "colourSetter";

Property Documentation

◆ callback

String Button::callback
readwrite

Use this to assign the name of another function. This function will be triggered automatically when the button is pressed.

◆ label

String Button::label
readwrite

Set the text on the button.