Container

This component is a "collection component" for other components.

Configuration

For general configuration options, see General component configuration.

Specific configuration

layout (string)

Alignment of the content. Possible values are vertical and horizontal.

Example

container.json
{
  "$schema": "http://bpc.virtimo.net/forms/1/schema",
  "metaData": {
    "id": 0,
    "version": 0
  },
  "configuration": {
  },
  "components": [
    {
      "type": "container",
      "layout": "horizontal",
      "label": "Horizontal container",
      "components": [
        {
          "type": "html",
          "value": "First element in horizontal container"
        },
        {
          "type": "html",
          "value": "Second element in horizontal container"
        },
        {
          "type": "container",
          "layout": "vertical",
          "label": "Vertical container",
          "components": [
            {
              "type": "html",
              "value": "First element in vertical container"
            },
            {
              "type": "html",
              "value": "Second element in vertical container"
            }
          ]
        }
      ]
    }
  ]
}
Embedded preview

Keywords: