textInput

The textInput element specifies how text is inserted and displayed.

textInput Element

Element Structure

The textInput element structure is as follows:

<xs:complexType name="textInput">

   <xs:complexContent>

      <xs:extension base="tns:button">

         <xs:sequence>

            <xs:element name="isMandatory" type="xs:boolean" />

            <xs:element name="maxCharacters" type="xs:nonNegativeInteger" />

            <xs:element name="numberOfLines" type="xs:nonNegativeInteger" />

            <xs:element name="placeHolderText" type="xs:string" />

            <xs:element name="textColor" type="xs:string" />

            <xs:element name="textInputFormat" type="tns:inputFormatEnum" />

            <xs:element name="textMask" type="xs:string" />

            <xs:element name="validationRegularExpresion" type="xs:string" />

            <xs:element name="minRange" type="xs:string" />

            <xs:element name="maxRange" type="xs:string" />

         </xs:sequence>

      </xs:extension>

   </xs:complexContent>

</xs:complexType>

tog_minusSub-elements

The textInput element contains the following sub-elements:

Name

Data Type

Comment

 

extends button

The extension element extends the textInput complexType element.

isMandatory

boolean

Specifies input validation before sending input to the server. The element also adds an asterisk indication before the buttonLabel indicating this functionality.

maxCharacters

nonNegativeInteger

Specifies the number of characters allowed to be entered. There is a prompt alert when user exceeds the maximum number of characters. 0 = no limit.

numberOfLines

nonNegativeInteger

Specifies the number of text lines can be entered into the field. 0 = no limit (dynamic as required), 1 = single line, short text, 2-n = number of displayed lines.

placeHolderText

string

Specifies a short hint describing the expected input field value. The hint is displayed until user starts to type, or if a value is removed.

textInputFormat

inputFormatEnum

Defines the Keyboard type.

textMask

string

Provided a Mask to display the text entered by the user.

validationRegularExpresion

string

Specifies the text to display before input validation and input transmission to the server.

minRange

string

Specifies the text to display before minimum range value validation and input transmission to the server.

maxRange

string

Specifies the text to display before Maximum range value validation and input transmission to the server.

rangeAlert

alert

Specifies an alert resource implementation when a range validation fails.

validationAlert

alert

Specifies an validation resource implementation when a validation fails.