dojox.mobile.TextArea

Authors:Doug Hays
Developers:Doug Hays
since:V1.7

TextArea is a very simple TEXTAREA widget.

Constructor Parameters

Parameter Type Default Description
baseClass String mblTextArea Default CSS class name used to render the TEXTAREA.
class String   Additional CSS class names to add to baseClass.
value String   Initial value of the editable text. If omitted, then the TEXTAREA’s innerHTML is used.
maxLength Number   Maximum number of characters that can be entered in the TEXTAREA (requires browser support).
placeHolder String   Prompt text to display inside the TEXTAREA when it would otherwise be empty (requires browser support).
onChange Function   An event handler used for TEXTAREA value change notifications.

Examples

Simple TextArea

<textarea data-dojo-type="dojox.mobile.TextArea" placeHolder="Enter comment"></textarea>
../../_images/SimpleMobileTextArea.png

onChange handler in HTML5 format

<textarea data-dojo-type="dojox.mobile.TextArea" rows="5" cols="40"
      data-dojo-props='value:"some data\nline 2", onChange:function(newValue){ alert("value changed to " + newValue); }'></textarea>
../../_images/HTML5MobileTextArea.png
Error in the documentation? Can’t find what you are looking for? Let us know!