Appearance
Binding the repeating of items
With binding, you can dynamically repeat items/elements and use each respective item's data inside bindings. This powerful feature allows you to create lists, grids, and other repetitive UI patterns that automatically update when your data changes.
Creating repeating items
The main use-case would be to display a list of items coming from your backend. In this example, we display the tasks of a table view as a grid of cards, in 4 steps:
1. Design one card
Create the design for the task card: a title for the name of the task, and a text for its status. You just need to create 1, as we will dynamically repeat the cards.
Then place the card into an empty flexbox, which will hold the list. You can do this very simply by pressing ⌘+G on Mac, or Ctrl+G on Windows to place the selected element into an empty flexbox. In this example, we named it Tasks list.
2. Repeat the card for each item
- Select the parent flexbox.
- In the
Specificsection of theStyletab, turn onRepeat Items. - Bind
Items. - In the binding window, open the
Datatab. - Expand your table view under
Table Views. - Select
data. - Close the binding window.

Our task card is now being created for every item in our bound list of tasks.
BINDING A LIST
When binding the repeating of items, you MUST bind it to a list of items (also known as an array). If you do not pass in a list of items, then it will not be able to automatically process the items and detect how many elements need to be created.
3. Arrange the cards in a grid
With the parent flexbox still selected:
- Open the
Styletab. - In the
Displaysection, setDisplaytogrid. - In the
Gridsection, click the+next toColumnsonce per column. Here, 4 times for 4 columns. - Add a
Column gap. - Add a
Row gap.

4. Show the data of each item
Finally, bind each element of the card to the matching field of its item:
- Select the text element for the name of the task.
- Bind its text.
- In the first tab of the binding window, expand
item.data. - Select
name.

Do the same for the status text, with status. Each card now shows the data of its own task. Open Preview to check the result.
ITEM DATA
Whenever you dynamically repeat items using a bound list of data, each element created will automatically have access to its respective item's data under item.data. item.index gives the position of the item in the list, starting at 0.
Filtering and sorting repeated items
You can choose which items to show, and in which order, right in the binding of Items. This is useful to show only part of a list, like the tasks that are still to do, without changing your table view.
Filtering items
- In the binding window of
Items, clickFilter. - Click
Add condition, then choose the field to check, herestatus. - Choose how to compare it, here
Is. - Enter the value to compare with, here
todo.

Only the items that match are repeated: here, the 2 tasks to do. Other ways to compare include Is not, Contains, Starts with, Is empty and Is in. To combine several conditions, click Add condition again, or Add condition group.
The value can also be bound, for example to a search input, so users filter the list themselves. Turn on the switch at the end of the condition to ignore it while that value is empty.
Sorting items
- In the binding window of
Items, clickSort, thenAdd sort. - Choose the field to sort by, here
name. - Choose
Ascfor A to Z or smallest first, orDescfor the opposite.

To sort by a second field when the first one is equal, click Add sort again.
Visually detecting repeated items
To tell if an element in the Layout Tree is repeating its child element, look for the purple Repeater label next to its name. Its child element shows a Template (n) label, where n is the number of items repeated.

Common repeating patterns
Here are some common UI patterns you can create with repeated items:
| Pattern | How to set up the parent flexbox | Use case |
|---|---|---|
| List | Direction set to Vertical | Displaying a series of items in a column |
| Grid | Display set to grid | Showing products, images, or cards in a grid |
| Row | Direction set to Horizontal | Creating a scrollable row of items |
To display rows and columns of data, use the Data Grid element instead: you bind it to your list of items, and it creates a row for each one.
Using AI to create repeating items
WeWeb AI makes setting up repeating items much faster and more intuitive through natural language commands.
Creating a repeating list with AI
Instead of manually configuring repeating items, you can describe what you want to the AI:
- Select the element you want to repeat.
- Open the AI panel.
- Describe the repeating behavior you want to create, and pass in the list of items you want to repeat.
- Submit.
For example, you could ask:
"I want to repeat this task card for each item in my tasks data in a 4 column grid with 16px spacing. I want to bind each field of the task card to its respective field in the item data"
Then check what the AI created: the element is in a flexbox with Repeat Items turned on and Items bound to your list, and each field on the card is bound to the matching item data.
Ensuring the AI can correctly map fields
The AI maps the content of the card to the fields of the item data more easily when the names of the elements closely mirror the names of the fields. In the example above, the Task name and Task status elements match the name and status fields.
Creating filtered repeating lists with AI
WeWeb AI can also create sophisticated filtering logic for your repeated items:
- Select the element that is repeating its child element. If you do not already have the list created, select the element you want to repeat.
- Open the AI panel.
- Describe the filtering you want to create. If you do not already have the list created, pass in the list of items you want to repeat.
- Submit.
For example, on an already created list of tasks:
"In this Tasks list, I want to only show the tasks whose status is todo"
To check the filter the AI added, select the list and open the binding of Items.
Best practices for repeating items
- Optimize for performance: if you're repeating many items, consider implementing pagination or infinite scrolling to avoid performance issues.
- Use the right layout: choose a list, a grid or a row based on your layout needs.
- Consider empty states: add visual feedback for when your table view has no data.
- Implement sorting and filtering: allow users to sort and filter repeated items to find what they're looking for more easily.
- Handle loading states: show loading indicators while data is being fetched to improve the user experience.
CONTINUE LEARNING
When you repeat many items, you can split them into pages so your app stays fast:

