TextField ========= .. granite:servercomponent:: /libs/granite/ui/components/coral/foundation/form/textfield :supertype: /libs/granite/ui/components/coral/foundation/form/field A text field component. It extends :granite:servercomponent:`Field ` component. It has the following content structure: .. gnd:gnd:: [granite:FormTextField] > granite:FormField /** * The name that identifies the field when submitting the form. */ - name (String) /** * The value of the field. */ - value (StringEL) /** * A hint to the user of what can be entered in the field. */ - emptyText (String) i18n /** * Indicates if the field is in disabled state. */ - disabled (Boolean) /** * Indicates if the field is mandatory to be filled. */ - required (Boolean) /** * Indicates if the value can be automatically completed by the browser. * * See also `MDN documentation regarding autocomplete attribute `_. */ - autocomplete (String) = 'off' /** * The ``autofocus`` attribute to lets you specify that the field should have input focus when the page loads, * unless the user overrides it, for example by typing in a different control. * Only one form element in a document can have the ``autofocus`` attribute. */ - autofocus (Boolean) /** * The name of the validator to be applied. E.g. ``foundation.jcr.name``. * See :doc:`validation ` in Granite UI. */ - validation (String) multiple /** * The maximum number of characters (in Unicode code points) that the user can enter. */ - maxlength (Long)