numberfield

This component represents a number field.

Configuration

For general configuration options, see General component configuration.

Specific configuration

type ("numberfield")

Type of component.

value (Binding | number)

Value of the field.

General configuration

In addition to the configurations valid for all Configurationsthe following configurations can optionally be set: disabled, errorTarget, icon, labels, label Settings, onChange, readOnly, required.

Example

numberfield.json
{
  "$schema": "https://forms.virtimo.net/5.1.0/schema.json",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {},
  "components": [
    {
      "type": "container",
      "label": "Numberfield Component Example",
      "components": [
        {
          "type": "numberfield",
          "value": "${/data/numberfields/1}"
        },
        {
          "type": "numberfield",
          "value": 55
        }
      ]
    }
  ],
  "state": {
    "data": {
      "numberfields": {
        "1": "42"
      }
    }
  }
}
Embedded preview

Keywords: