NumberFieldΒΆ

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

A field that allows user to enter number.

It extends Field component.

It has the following content structure:

granite:FormNumberField
  1. granite:FormField
namestring

The name that identifies the field when submitting the form. The SlingPostServlet @TypeHint hidden input with value matching typeHint property is also generated based on the name.

valuestringel

The value of the field.

disabledboolean

Indicates if the field is in disabled state.

typeHintstring

The value of SlingPostServlet @TypeHint.

requiredboolean

Indicates if the field is mandatory to be filled.

validationstring
multiple

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

mindouble

The minimum value allowed.

maxdouble

The maximum value allowed.

stepstring
  1. 1

The increment/decrement step amount.