TextArea
A TextArea widget is used to enter multiple lines of text.
Derived base
dojox.mobile.TextArea
Properties
dataName
The name of a data element to which the widget is bound. If no data to be sent to the server, leave this property blank.
id
A unique ID string for the widget.
disabled
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
value
The value of the widget.
readOnly
false
This is the default value. The widget is not read-only.
true
The widget is read-only.
lowercase
false
This is the default value. The letters are display as they are.
true
The letters are all in lowercase.
selectOnClick
false
This is the default value. The texts in the widget are not selected when you tap the widget.
true
All texts are selected when you tap the widget.
maxLength
The maximum number of characters that can be entered in the widget.
placeHolder
This property specifies the prompt text to be displayed in the widget. When you tap the widget, the prompt text disappears.
propercase
false
This is the default value. The widget is not read-only.
true
The widget is read-only.
trim
false
This is the default value. The texts are displayed as they are.
true
The leading and trailing empty spaces are removed.
uppercase
false
This is the default value. The letters are display as they are.
true
The letters are all in uppercase.
cols
This property specifies the visible width of the text area.
rows
This property specifies the number of visible lines in the text area.
ECA editor support
Events that can be added to the TextArea widget with the ECA editor
onChange
This event is called when the value of the widget is changed.
onBlur
This event is called when the widget loses focus.
onFocus
This event is called when the widget gets focus.
onInput
This event is called when you input text in the widget.
Properties that can be configured for the TextArea widget with the ECA editor
focused
false
The widget does not get focus.
true
The widget gets focus.
Applicable ECA part: Condition, Expression in Condition
disabled
false
This is the default value. The widget is interactive.
true
The widget is visible but not interactive.
Applicable ECA part: Condition, Expression in Condition, Actions
value
The value of the widget.
Applicable ECA part: Expression in Condition, Actions
readOnly
false
This is the default value. The widget is not read-only.
true
The widget is read-only.
Applicable ECA part: Condition, Expression in Condition, Actions
id
A unique ID string for the widget.
Applicable ECA part: Expression in Condition
Functions that can be configured for the TextArea widget with the ECA editor
set(name,value)
Set a value for a widget property.
Applicable ECA part: Actions
reset()
Reset the value of the widget to the initial value.
Applicable ECA part: Actions
focus()
Set focus on the widget.
Applicable ECA part: Actions
undo()
Restore the value that was sent to the onChange event to the latest previous value.
Applicable ECA part: Actions
get(name)
Returns the value of a widget property.
Applicable ECA part: Expression in Condition
compare(var1,var2)
0
var1 is same as var2.
1
var1 is after var2 in the dictionary order.
-1
var1 is before var2 in the dictionary order.
Example: compare("Hello","World") returns -1.
Applicable ECA part: Expression in Condition
See also