We would like to have a screen in our app where all notifications are displayed. Building that page is not a problem, but we also would like to have an indication of the number of notifications in the menu.
I’ve seen several topics on the forum where a red dot with a number displays the number of items. This would be perfect for us!
To test, I created a page where I added a rich text component with this code:
The method of applying CSS through a rich text component only applied to classic apps, so if you are pulling that code from an old post, it most likely doesn’t apply anymore. Anything with the PRE SPAN STYLE tags is old.
What @Himaladin shared is the new way to apply CSS.
Honestly I’m having trouble with this also. I can get the floating notification but I actually need it to be in the current screen (Dashboard) and not just floating to the right on the bottom.
It is currently set up as a rich text component and via a template. Note - it is currently reading the number of Open Stipulations, not the number of alerts which is why a “2” is showing).
If you only need to display a badge on the navigation tab, you can skip the first code section and go directly to the “Additionally, CSS codes are provided below that you can choose based on your needs: point number 2.”
Here, you don’t need any code in the rich text, but you just need a spacer component placed on each screen.
Does your plan have custom CSS enabled? I’ve seen in another thread, it turns out the problem is that the custom CSS hasn’t been activated by Glide.
Your code is for display on mobile. Make sure you view it on mobile, not desktop.
the easiest way I would think is to display the img before the text, but trying to do that with a template didn’t work because it just reads the raw code and doesn’t display the image.
I know that this can be done with a rich text but the text displayed is coming from a checkbox collection like an alerts center
It should work even if one of your column values contains a counter; the CSS will only shift it. However, I’m not quite sure about your goal—whether each item in the list has its own uniqueness or if it is a global condition from something else. It’s better to start a new topic to avoid confusion in this thread. I’ll provide the solution once I’m back at my computer.