I’m currently making an app to display information for a list of people and am using the lists view in Glide. Is it possible to use the markdown text element somehow in the view of the list - I would like to be able to italicize and bold things that aren’t italicized / bolded by default.
Not that I’m aware of. What you could do is choose a details view and add an inline list to it. Then you could use css inside of a rich text component to target the inline list.
One thing to consider is that a details view is not full screen on desktop.
My experience with css is limited so I can’t write you the exact code. Place your css inside of a rich text component on the same screen and target your inline list. Perhaps there is a way to use HTML i’m just not aware. There are many experts on here willing to lend a hand.
Right now, I have a spreadsheet with rows of items, containing names, emails, etc. I am attempting to have the app display a list of the items, and have the user be able to click on each individual item and can see more details for each item on the list. I want to be able to change the color and bold / italicize parts of the items in the list view (eg. bold all of the first names or color the names based off of some metric).
I tried to use /Eric_Penn 's suggestion, but I am not sure how to have something “target” something else in Glide. I do know HTML and CSS and have just tried it in Glide about an hour ago. I just don’t know how to “add an inline list to it. Then you could use css inside of a rich text component to target the inline list.”
Theoretically, I could design each list item as a rich text element in a details view, (something I have done before but with image elements instead of HTML) and manually go in and set up each details screen, but that doesn’t scale nicely and is incredibly time consuming.
That should be doable, but you can’t target part of each element, let’s say if you want “A B” as your title and A be bold, B be italic, it wouldn’t work as far as I aware.
Basically there’s an inline list, and a rich text component where I will insert my CSS code. That’s how we target specific elements in Glide Apps (not in Pages as of now).
That’s really neat! I never knew you could do that! Is it possible to change the background color of each item as a whole, or apply a border radius or shadow? I know you can do this with normal rich text elements by creating divs and adding css, and was wondering if you could do that in here.
Thanks for all your help so far!
Edit: Also, I was looking at your a code a bit and had a question - what is ‘data-test’ referring to? Is this the name of the sheet?
This is so cool! I never knew this existed! Is it also possible to get rid of the little lines that sit between items, or would the best route be to mess with the margins so the list items cover the lines?
Awesome! One more quick question - is is possible to have different items have different code attributes? For example, could I add a column to my spreadsheet that has what color I want each item in the list to be?