The List Web Control is a repeating element for 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. Lists can use Button Cell Web Controls, Simple Cell Web Controls, Checkbox Cell Web Controls, or Radio Cell Web Controls to hold each item in the list.
This is the list of data. Each item in the list will have its own cell.
By default: item. This property is used within the context of each cell as the current item.
By default: index. This is the number value of the current index of the current item. Visible within the context of the cell.
By default: items. This is a variable referring to the entire collection of objects. With the default values set up, items[index] = item.
Because Lists are a generic container, they can work with any of the cell types:
- Button Cell Web Controls
- Simple Cell Web Controls
- Checkbox Cell Web Controls
- Radio Cell Web Controls
Each of these cells will have slightly different characteristics. Please review the cell pages for specifics on each of them.
Example 1: Simple House List
A simple list containing the list of houses a service manages:
Create a list control on the page. Populate a list of Houses. Set the data to the list of houses. Add a simple cell and populate the cell with the title and image of the house.
- Working with Forms & Agreements - for using different lists for collecting data.
- The List Data Type - for information on the List data type used to drive List Web Controls.
- Querying Lists (Arrays) & Objects (JSON) in Airscript - for information on modifying a list with Airscript before displaying it.