Container
Last updated
Last updated
The main purpose of the Container
component is to act as separate host for other child components. It groups a set of components together in a dedicated frame, arranged on a separate grid from the main application canvas. A Container
can be made scrollable to create a scroll container to place larger content than the available space.
When the dimensions of a Container
on the canvas are adjusted, its content resizes dynamically.
Use this component to create separate areas in your app for specific component groups. The styling options allows these blocks to stand out visually compared to the rest of the application.
The Container
component offers the following configuration properties.
Property | Type | Default value | Behavior |
---|---|---|---|
Header text |
|
| When the "Show Header" property is set to |
Scrollable |
|
| Determines whether the container should allow scrolling in case its content is larger than the container itself. If disabled, overflowing content is hidden and not accessible to the end user. |
Show Header |
|
| When set to |
A container with "Scrollable" set to false
is still scrollable in the app editor, but highlights overflowing content with a red background.
The purpose of this is to still allow the app editor to freely modify the container content, while aware that some content will be inaccessible for the app user. The production version does not scroll for such a container, and cuts off overflowing content.
The Container
does not offer any events.
The Container
exposes the following API in the JavaScript runtime environment.
Property / Function | Type | Behavior |
---|---|---|
|
| Current string value of the "Header text" configuration. |
|
| Sets the header text to the provided string value. |
|
| Adjusts the flag whether the header text should be displayed to the provided boolean value. |
|
| Current boolean value of the "Show header" configuration. |