Container

You will find here the description of Container components and its attribute details

What is it?

Container is a component that contains other components inside it.

See how the structure is represented:

AttributeTypeRequiredDefinition
childrenList <ServerDriven Component>The content of this Container, i.e. its children.
contextContextDataIt is the context in this widget.
onInitList<Action>It is a parameter that allows you to define a list of actions to be performed when the Widget is displayed.
styleIdStringRefers to a locally configured style that it will be applied on the container.

How to use it?

Container(
    children = listOf(
        Text(text = "@{myContext}")
    ),
    context = ContextData(
        id = "myContext",
        value = "Hello World!"
    )
)