User-Entered Text

Some applications allow the user to enter data into text fields. There are three types of text fields: password fields, rich text fields, and text fields.

The following table provides additional information with image examples.

Type Description Example
Password field This is a text entry field that displays only the character you just typed, with the previously-typed characters as dots. The last character automatically turns into a dot after a few seconds. Implemented by using the Mojo.Widget.Password API.
Rich text edit field This is a text entry field to enter, select, copy, and paste text. In addition, the user can apply bold, italic, underline, and color formatting to the text. Implemented by using the Mojo.Widget.RichTextEdit API.
Text field This is an entry field to enter, select, copy, and paste text. There are three variations. Set the attributes on a text field to set single line versus multi-line, autoTruncation, autoGrow, and more. When an entry field is active, press the Sym (symbol) key to display a pop-up that displays special characters. Vertically scroll through the list, and tap one of the characters to insert it. Implemented by using the Mojo.Widget.TextField API.

The example shows a field that autoGrows when entering more content and a single-line text field that autoTruncates after entering a value.