container
This component is a "collection component" for other Components. This component can be used by default to display multiple components, as the components are automatically assigned via the <INLINE_CODE_1/> and are arranged appropriately via the labels can be used to set a heading.
Configuration
For general configuration options, see General component configuration.
Specific configuration
type("container")-
Type of component.
components(array<Component>)-
List of Components.
languageButton(boolean)-
Inserts a button in the container’s Labels that can be used to open a menu to change the language.
layout(enum<"vertical" | "horizontal">)-
Alignment of the content.
Example
container.json
{
"$schema": "https://forms.virtimo.net/5.1.0/schema.json",
"metaData": {
"id": 0,
"version": 0
},
"configuration": {
},
"components": [
{
"type": "container",
"layout": "horizontal",
"languageButton": true,
"label": {
"MULTI_LANGUAGE": {
"en": "Horizontal container",
"de": "Horizontaler Container"
}
},
"components": [
{
"type": "html",
"value": "${/data/htmlElements/0}",
"flex": 1
},
{
"type": "html",
"value": "${/data/htmlElements/1}",
"flex": 1
},
{
"type": "container",
"layout": "vertical",
"label": {
"MULTI_LANGUAGE": {
"en": "Vertical container",
"de": "Vertikaler Container"
}
},
"flex": 1,
"components": [
{
"type": "html",
"value": "${/data/htmlElements/2}"
},
{
"type": "html",
"value": "${/data/htmlElements/3}"
}
]
}
]
}
],
"state": {
"data": {
"htmlElements": [
{
"MULTI_LANGUAGE": {
"en": "First element in horizontal container",
"de": "Erstes Element im horizontalem Container"
}
},
{
"MULTI_LANGUAGE": {
"en": "Second element in horizontal container",
"de": "Zweites Element im horizontalem Container"
}
},
{
"MULTI_LANGUAGE": {
"en": "First element in vertical container",
"de": "Erstes Element im vertikalem Container"
}
},
{
"MULTI_LANGUAGE": {
"en": "Second element in vertical container",
"de": "Zweites Element im vertikalem Container"
}
}
]
}
}
}
Embedded preview
Keywords: