textfield

This component represents a single-line text field.

Configuration

For general configuration options, see General component configuration.

Specific configuration

type ("textfield")

Type of component.

value (Binding | string)

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

textfield.json
{
  "$schema": "https://forms.virtimo.net/5.1.0/schema.json",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "label": "Textfield Component Example",
      "components": [
        {
          "type": "textfield",
          "label": "My Textfield",
          "value": "Hello World"
        },
        {
          "type": "textfield",
          "value": "${/data/text}"
        }
      ]
    }
  ],
  "state": {
    "data": {
      "text": "Some Text"
    }
  }
}
Embedded preview

Keywords: