HTML

This component makes it possible to integrate HTML elements directly into a form.

Configuration

For general configuration options, see General component configuration.

Specific configuration

value (string)

the content is evaluated as HTML and displayed accordingly. Data binding should be used.

Example

html.json
{
  "$schema": "http://bpc.virtimo.net/forms/1/schema",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "label": "HTML Component Example",
      "components": [
        {
          "type": "html",
          "value": "'One element with Data binding:' + /data/input + /data/paragraph"
        },
        {
          "type": "html",
          "value": "/data/secondHTML"
        },
        {
          "type": "textfield",
          "label": "Input for first html Element",
          "value": "/data/input"
        }
      ]
    }
  ],
  "state": {
    "data": {
      "input": "",
      "paragraph": "<p> A whole paragraph </p>",
      "secondHTML": "Before paragraph.<p>Another <b>important</b> element inside a paragraph.</p> After paragraph."
    }
  }
}
Embedded preview

Keywords: