This is a step by step tutorial about adding sorting functionality to your lists using the Airtable API on Bravo Studio.
This tutorial contains screenshots from an old version of data binding in Bravo Studio. The functionalities remain the same as the current interface.
Here are some of the things you need to have ready before you begin this.
We will have a list of pantry items, where we will show the name, the quantity and the last time it was stocked up, and that is how we will be sorting them.
In *Item [container], the [container] is a Bravo tag that tells Bravo Studio that this is the layer containing the elements that will be used with your Airtable data.
Why the *asterisk? Well, these are the layers that will be populated with data. The only purpose of the asterisk is to allow those layers to stand out when we are binding our data to the designs in Bravo Studio. Alternatively, you can even do DATA-Item Name instead of *Item Name. All we are doing is indicating.
Layer Structure and Naming
As you can see, we have 3 buttons for our sorting; Item name, quantity, and last stocked. We are sorting our data in ascending and descending order. So that's a total of 6 screens.
Connect each button to the respective screen and test out the prototype to make sure the flow is how you want it to be.
Prototype with all the interactions
We will have this data with varying names, quantities, dates. That way when we sort it, we can see it in ascending and descending clearly.