Bind data to design for a list page
Last updated
Was this helpful?
Last updated
Was this helpful?
This tutorial is a continuation after you have retrieved data from a database. If you haven't done that yet, check out:
👉 👉 💡 We are using the Sample App: Your first app with this and Xano as backend for the tutorial.
Duplicate the app to follow the tutorial:
Once in your Bravo app page, follow these steps to connect your data to your app design:
On the left hand side of the screen, you will see your App screens
. Select the app screen you want to connect to data. For this example, we are binding data to the Resorts list
page. Once selected, this will enter Data Binding mode.
Once selected, on the right side of the screen, under Element Binding
and List item
, select the API Collection > the API request GET-"List of Resorts"
After that, select the data item corresponding to the list. In this case, it has the name of data
, but this can be different depending on the backend tool you're using. You can also change it in your API request configuration.
This binding will create as many “cards” as rows in the database.
4. Once you've bound the list container, it's time to bind the UI elements inside the container. In this case, it will be several text elements, and an image.
5. Now, the container element will populate to a list with an image and several text elements. Check out your list page in Bravo Vision! 📱
Binding a single paginated list to a screen is supported. However, binding multiple paginated lists to one screen is currently not supported.
Make sure your table has no empty rows. Otherwise, the list might not populate correctly.
In our design file, we have a Resort card
designed for each item from a list. Select this element, it has a tag which allows us to bind a List of items to it. We want to bind this element to a list we're getting with an API request.
See how to set up a GET request for a list.
In case you're using Airtable, and you want to display the items in the same order as in your table, add the to the request URL. For instance: https://api.airtable.com/v0/XXXX/Posts?view=my_view