The DojoTextField widget defines a text box containing
one or more lines of text. This widget is based on the Dojo dijit.form.SimpleTextarea
definition.
Here are supported properties:
- numRows
- The number of rows in the text area.
- numColumns
- The number of columns in the text area.
- readOnly
- A Boolean value that indicates whether the text field is protected
from user input.
- selectOnClick
- A Boolean value that indicates what happens when the user clicks
from outside the text field into the field:
- False (the default)
- The content of the text field is not selected. The update cursor
is displayed at the click position.
- True
- The content of the text field is selected. Any subsequent click
displays the update cursor at the click position, and the content
of the text field is no longer selected.
- text
- The string content of the Dojo text field.
- textCase
- A string constant that indicates what happens to the case of the
input when the user finishes typing and navigates to another field.
One of the following values:
- CASE_NONE (the default)
- The user's string is left as is.
- UPPER_CASE
- The user's string is set to uppercase.
- LOWER_CASE
- The user's string is set to lowercase.
- PROPER_CASE
- The first letter in each word is set to uppercase, as if the string
were a title.
- trim
- A Boolean value that indicates whether preceding and trailing
blanks are removed when the user finishes typing and navigates to
another field.
No functions are supported that are specific to this widget type.
Other supported properties and functions are described in “Widget
properties and functions” and “Widget styles.”