I have a repeating group with four columns and want to add the following titles above each column respectively: date, e-mail, name, price.
How can I do this while at the same time retaining responsiveness, with the titles remaining aligned with the respective columns when the screenwidth changes.
Hi @Timon It will probably involve some more adjustments, but I would start by having the heading text elements be the same default size as the rg text elements, and have the same responsive settings for the headings, as the related text elements within the repeating group. For example, the âPriceâ heading would be the same size as the text in the RG âCurrent cellâs Thingâs Priceâ, and âDateâ would be the same size as the text in the RG âCurrent cellâs Thingâs Dateâ.
Alternatively, if your repeating group has one column and many rows, you can place the headings within the first cell of the repeating group, inside its own group. Then have a conditional statement on the group which is âWhen Current cellâs index is not 1â --> This element is visible, and collapse this elementâs height when hidden. This will make sure the headings only display within the first cell.
Thanks for the reply. Thatâs also what I already did but still it doesnât completely align unfortunately.
I have one more question in regard to repeating groups: In case he repeating group is empty, I would like to either hide the titles or how a message saying that itâs empty, any idea how to do that?
I figured it out, posting it for other users that might encounter the same problem:
Within the repeating group I had two more text boxes on the right which I didn[t include in the group in which I put all the titles. I copied these two text boxes into the group with titles and then hid them. This way, everything stays perfectly aligned!
No problem at all Bubble keeps margins constant, so the workaround is what you did, or to add transparent shape elements to adjust spacing between elements. I donât have the link now but if you look at the example apps, the Bubble.is example uses this approach in some parts of the app.
If youâd like to hide the rg when there are zero results, you can set up a conditional statement âWhen repeating groupâs:count is 0â This element is visible (unchecked). Then create a conditional statement on a text element which becomes visible at that time stating âNo results found for (Input Searchâs value)â, for example.
Thatâs awesome, thanks. First time I hear about example apps, where do I find them? Iâm sure I can avoid asking a lot of questions checking those out.