Class: UIIntDialog

UIIntDialog

Provides a configurable dialog to prompt the user for an integer value.


Mixes In:
Example
var ui = $wat.load('ui')[0];
var intDlg = ui.dialogs.getInt;
intDlg.title = 'Enter a number from 40 to 49';
intDlg.bottom = 40;
intDlg.top = 49;
var result = intDlg.exec();
if (result != null) console.log('User entered: ' + result);
else console.log('User canceled');

Members


bottom :number

Gets/sets the lowest acceptable value.

Type:
  • number
Since:
  • 1.0
Default Value:
  • -2147483647

password :bool

Gets/sets whether values entered by the user will be replaced by '*' on the screen. Typically used for entering passwords or other sensitive information that otherwise could be seen on the screen.

Type:
  • bool
Since:
  • 1.0
Default Value:
  • false

top :number

Gets/sets the highest acceptable value.

Type:
  • number
Since:
  • 1.0
Default Value:
  • 2147483647