NumberEdit Class Reference

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

Properties

double value
 The value shown. More...
 
double decimals
 The precision of the NumberEdit. More...
 
double minimum
 The minimum value allowed by NumberEdit. More...
 
double maximum
 The maximum value allowed by NumberEdit. More...
 

Detailed Description

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

Note
NumberEdit is derived from Label, so, it also has the label properties.
var myDialog = new Dialog();
myDialog.title = “NumberEdit Example”;
var userInput = new NumberEdit();
userInput.decimals = 3;
userInput.minimum = 0;
userInput.maximum = 1;
userInput.label = “Enter a number between 0 and 1: “;
myDialog.add( userInput );
if ( myDialog.exec() )
{
var inputNum = userInput.value;
MessageLog.trace( inputNum );
}

Property Documentation

◆ decimals

double NumberEdit::decimals
readwrite

The precision of the NumberEdit.

◆ maximum

double NumberEdit::maximum
readwrite

The maximum value allowed by NumberEdit.

◆ minimum

double NumberEdit::minimum
readwrite

The minimum value allowed by NumberEdit.

◆ value

double NumberEdit::value
readwrite

The value shown.