Container List
Last updated
Was this helpful?
Last updated
Was this helpful?
The Container List Web Control is a repeating element to display a collection of data. It can be used in input forms or to display data. The List Web Control iterates over a variable list, displaying a cell for each item on the list.
#General
###Data
Expects type list
.
Each item in the has its own cell.
###Item Name
By default named as item
. This property is used within the context of each cell as the current item.
###Index Name
By default named index
. This is the number value of the current index of the current item, visible within the context of the cell.
###Collection Name
By default named items.
This is a variable referring to the entire collection of Objects, with the default values set up: items[index] = item
.
#Advanced
###Is Visible
Expects type boolean
.
If TRUE
the container list will be visible. If FALSE
the container list will not be displayed. If the field is empty, the container list will be visible.
#Example
To create a simple house list, add a container list to the web page. In the Data property, add a list of house objects. This can be represented something like:
Then edit the Text property of the label to item.name
.
And edit the Image URL property to item.image
.
Now the web page will display the list of objects in the container list.
Containers and their elements can be styled. See .
Add a or nested under the Container List. Inside of the Container, add a and an . The Label will be where the name of the house will be displayed and the Image is where to pass the image of the house.