Edit style attributes

Edit style presentation attributes apply to an edit element.

Note: This topic lists presentation style attributes for a specific class of form element, common presentation style attributes can also be used for this type of element.
Table 1. Edit style attributes
Attribute GDC GWC-JS GMA GMI
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 No No
spellCheck

Defines if the edit field includes a spelling checker.

Note:
  • With GDC, the possible values are the two dictionary files needed for each language (one .aff and one .dic). These files can be downloaded here. Only the files available for OpenOffice.org 2.x are working (files for OpenOffice.org 3.x are not supported yet). Specify in the style the two files for the "spellCheck" StyleAttribute, using one of the file formats. The local directory of dictionary files can be asked to the GDC with the standard.feInfo frontcall with the dictionariesDirectory parameter.
  • With GWC-JS, the attribute is not applicable: Edit fields use the web browser spellchecker.

  • With GMI, available values are "yes", "no". If this attribute is not set, iOS will decide if spellchecking is enabled, depending on the global auto-correction setting on the device.

No (see note) No (see note) No Yes (see note)