Container List
Last updated
Last updated
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.
Expects type list
.
Each item in the List has its own cell.
By default named as item
. This property is used within the context of each cell as the current item.
By default named index
. This is the number value of the current index of the current item, visible within the context of the cell.
By default named items.
This is a variable referring to the entire collection of Objects, with the default values set up: items[index] = item
.
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.
Expects type boolean
.
If TRUE
, the Container List will be disabled and the user will not be able to interact with the Control. If FALSE
, it will be enabled. If the field is empty, it will be enabled.
Containers and their elements can be styled. See Common Style Properties of Web Controls.
To create a simple house list, add a Container List to the Web Page. In Data Binding > Data, add the following list of house objects:
Nested under the Container List, you'll find a Container with two Label controls by default. Add an Image control as well. Use the Label for the name of the house and the Image to pass the image of the house.
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.