CheckBox Class Reference

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

Properties

String text
 The text shown alongside the CheckBox. More...
 
bool checked
 Toggle whether or not the CheckBox is checked. More...
 

Detailed Description

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

var myDialog = new Dialog();
myDialog.title = “CheckBox Example”;
var userInput = new CheckBox();
userInput.text = “Is this guide helpful?”
myDialog.add( userInput );
if ( myDialog.exec() )
{
if( userInput.checked );
MessageLog.trace( “The guide is helpful!” );
}

Property Documentation

◆ checked

bool CheckBox::checked
readwrite

Toggle whether or not the CheckBox is checked.

◆ text

String CheckBox::text
readwrite

The text shown alongside the CheckBox.