Bubble Table Element - Alternating Row Background Color
In this Bubble tutorial we demonstrate the new Bubble Table Element and show how you can easily add alternating row background colors to the Table Element in your Bubble app.
Unlock the power of alternating rows: Learn how to add eye-catching table designs in Bubble!
Master Bubble's new table element: Discover the secret to creating visually appealing repeating groups with alternating colors!
Transform your Bubble tables from boring to beautiful: See how easy it is to implement alternating row colors!
Introduction to Bubble Table Elements
In this Bubble tutorial video, I'm going to demonstrate the new Bubble table elements and how you can add alternating row colors to your table. But before I dive in, did you know that we've got even more videos on our website planetno-code.com. You'll find member exclusives, you cannot find them on YouTube.
Creating a Contact List Table
Right, let's look at how we add alternating rows into our table. So I've mocked up using the new table element a quick table here, it's a list of contacts, you might recognize some of the names and all I need to do is go into the designer and then click on the repeating row.
Accessing Row Index in Bubble
And right now Bubble doesn't actually allow you to access the row index in the row selector itself. So what you have to do is go into the cell and in the cell you can access the row's index.
Using Modulo for Alternating Rows
So I can say current row's index modulo, this is a way of dividing by 2 and checking for remainder which is basically a way of checking if the row is odd or even, an odd or even number. And so I can say is 0. So 2 divided by the current cell's row does that equal 0. So 2 divided by, yep you go, leaving a remainder or no remainder, basically that's what I was checking for.
Changing Background Style
And so then I can change the background style and then I can change the background color and I'm going to change it to some sort of really subtle gray and I'm going to test that just so I can see if it's clear. Okay, it's a bit more of a pinkish gray but that's fine, it illustrates it for this demonstration.
Applying the Condition to All Cells
And so then what I need to do is copy the condition here and paste it into every cell in the row. Let's preview that. And so there you go, that's how to add in alternating rows.
Future Feature Request for Bubble
And I, you know, the table element by Bubble has just been released and I really hope that one of the features they add is the ability to tap into the this row's index or current row's index in the conditional statement here. You can't do that.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.