Edit style attributes

Edit style presentation attributes apply to an edit element.

Table 1. Edit style attributes
Attribute Description GDC CLIENT HTML5 CLIENT
dataTypeHint

Defines the type of the input, to let the front-end render a field behavior suitable for the particular data type. This attribute is especially useful on mobile devices.

Values can be:

  • "email" (for email addresses)
  • "url" (for URLs)
  • "tel" (for telephone numbers)
  • "search" (for search box fields)
For example, on a smart phone, entering data into an edit field with datatypeHint="tel" makes the numeric keyboard appear.
<Style name="Edit.hintPhone">
 <StyleAttribute
  name="dataTypeHint"
  value="tel"/>
</Style>
No Yes