Adding Stripes to a Repeating Group
How can I add a stripe to either the odd or the even rows in a repeating group? Hi, I'm Matt, I'm a Bubble coach and Bubble educator and if you're learning Bubble and you find this video useful please hit like and subscribe. You can find hundreds of Bubble tutorial videos exclusive to our members at planetnocode.com so if you're serious about learning Bubble, head over there and get yourself a membership to access our full Bubble tutorial library.
Setting Up the Repeating Group
Right, let's add a stripe to this repeating group. I'm going to do a process which involves a function that I don't see many people talking about in Bubble. The first thing I'm going to do is set the background style to flat and to white. Now all of the cells in my repeating group have got a background color of white.
Using the Modulo Function
Then I'm going to say when current cell's index modulo 2 is 0. It's basically saying if the current cell's index is divided by 2 and the remainder is 0, I'm going to change the background color. Let's make it a nice gray. We'll preview that.
Result and Conclusion
There you go, now I've added stripes to my repeating group. If you found this video useful, like and subscribe is loved by us and the team. You can always just give us a thanks or you can give us a little donation by buying me a coffee if you found this video useful.