Skip to content

Edit Text View

An edit text view supports editing form values on a screen. This can be for new entry as well as editing existing values defined by the module.

PropertyDescription
textStyleSets the standard (non-focus) text style. See Text Styles in MCI
focusTextStyleSets the focus text style. See Text Styles in MCI
widthSets the width of a view for the text edit (default 15)
argNameSets the argument name for this value in the form
maxLengthSets the maximum number of characters that can be entered
focusSet to true to capture initial focus
justifySets the justification of the text entry. Options: left (default), right, center
fillCharSpecifies a character to fill extra space in the text entry with. Defaults to an empty space
prefixFormatOptional prefix displayed before the typed text. Supports pipe color codes (e.g. "|15{userName}|07> "). The {userName} token is substituted at init time by modules that support it (e.g. sysopChat). The prefix is purely visual — getData() returns only what the user typed. Cursor position and horizontal scroll account for the prefix width automatically.

Example

Configuration fragment (expand to view)
ET1: {
maxLength: @config:users.usernameMax
argName: username
focus: true
}