List Views

Appstent supports adding multiple content views that need to be lazy loaded in a list container. Lists are currently supported only in vertical direction. List View can be sectioned if it has the sections JSON array object containing the views, or without sections if the views JSON array is present directly at the level of List view JSON object.

Following examples show List View container with sections and without sections respectively:

Sample List without Sections

{
    "type": "list",
    "views": [
        {
            "type": "text",
            "text": "Item 1"
        },
        {
            "type": "text",
            "text": "Item 2"
        }
    ]
}

Sample List with Sections

{
    "type": "list",
    "sections": [
        {
            "title": "Group 1",
            "views": [
                {
                    "type": "text",
                    "text": "Item 1"
                },
                {
                    "type": "text",
                    "text": "Item 2"
                }
            ]
        },
        {
            "title": "Group 2",
            "views": [
                {
                    "type": "text",
                    "text": "Item 1"
                },
                {
                    "type": "text",
                    "text": "Item 2"
                }
            ]
        }
    ]
}

Last updated