TextEdit Class Reference

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

Properties

String text
 The text string shown in the widget. More...
 

Detailed Description

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

var myDialog = new Dialog();
myDialog.title = “TextEdit Example”;
var userInput = new TextEdit();
userInput.text = “Tell us how you feel about this tutorial.”
myDialog.add( userInput );
if ( myDialog.exec() )
{
var inputText = userInput.text;
MessageLog.trace( inputText );
}

Property Documentation

◆ text

String TextEdit::text
readwrite

The text string shown in the widget.