SpinBox Class Reference

The SpinBox JavaScript class. A simplified version of the SpinBox Qt widget. More...

Properties

int value
 The value shown in the spinBox. Default value is 0. More...
 
int minimum
 The minimum value that the spinBox will descend to. Default value is 0. More...
 
int maximum
 The maximum value that the spinBox will ascend to. Default value is 99. More...
 

Detailed Description

The SpinBox JavaScript class. A simplified version of the SpinBox Qt widget.

var myDialog = new Dialog();
myDialog.title = "SpinBox Example";
var userInput = new SpinBox();
userInput.label = "Pick a number: ";
userInput.maximum = 100;
userInput.minimum = 1;
myDialog.add( userInput );
if ( myDialog.exec() )
MessageLog.trace("The chosen number is: " + userInput.value + ".");

Property Documentation

◆ maximum

int SpinBox::maximum
readwrite

The maximum value that the spinBox will ascend to. Default value is 99.

◆ minimum

int SpinBox::minimum
readwrite

The minimum value that the spinBox will descend to. Default value is 0.

◆ value

int SpinBox::value
readwrite

The value shown in the spinBox. Default value is 0.