Collection
The collection element is used to show a list of items using a component as base for the repetition. This can be used, for example, to display a list of products in an e-commerce, using a product card as repeated component.

The source for the items can be a regular javascript list or the result of queries from the backend.
In the component, the value of the current item in the collection is available through the
item
property.
Collections have a method that reloads their data based on a trigger. Consider you have a collection and want to refetch it's data after clicking a button. You can bind a Call Element Method action to your button click event, select the collection and the
Reload
method.
The component that will be displayed when there is no element in the array of items
Format: subview
The component that will be displayed if there is an error when getting the array of items
Format: subview
The direction the items will be placed in the collection. It can be either
vertical
or horizontal
Format: textWhether the scrollbar should be hidden (the behaviour is kept the same, but visually there will be no scrollbar)
Format: boolean
Last modified 1yr ago