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.
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Flexible Pricing Plans to Fit Your No-Code Journey
Choose the plan that aligns with your goals and start building your startup today.
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
Both plans offer full access to our learning resources, community, and support. The Annual plan provides a significant discount (over 15%) compared to paying monthly, and it allows you to lock in your rate for a full year.
Absolutely! You can easily upgrade or downgrade your membership plan at any time by logging into your account and selecting the desired plan. Any unused portion of your current plan will be prorated and applied to your new plan.
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.
If you decide that Planet No Code isn't the right fit for you, you can cancel your membership at any time by logging into your account and navigating to the subscription management page. Click the "Cancel Membership" button, and your membership will be terminated at the end of your current billing cycle.