Password

/libs/granite/ui/components/coral/foundation/form/password

A password field component.

It extends Field component.

It has the following content structure:

granite:FormPassword
  1. granite:FormField
namestring

The name that identifies the field when submitting the form.

emptyTextstring
i18n

A hint to the user of what can be entered in the field.

disabledboolean

Indicates if the field is in disabled state.

requiredboolean

Indicates if the field is mandatory to be filled.

autocompletestring
  1. off

Indicates if the value can be automatically completed by the browser.

See also MDN documentation regarding autocomplete attribute.

autofocusboolean

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.

retypestring

The name of the other password field that is used to verify this field.

If the values of both fields don’t match, validation error is shown.

validationstring
multiple

The name of the validator to be applied. E.g. foundation.jcr.name. See validation in Granite UI.