Can I add a icon to my dashboard group node

I have a dashboard group node with a name Birthdays. I have found a material icon for a birthday cake (cake). It should be used as mi-cake I believe. I found a post where you can add this to a label to display a icon. . In the group node there is no tab for icon, just class. I tried entering it into class but that does not no anything. I want to end up with the group name dispayed with the cake icon then Birthdays

Add custom class to the group node

And then make use of it as for after element of the paragraph inside it.

I have got my cake... but I have a couple more than I wanted

image

There's no such thing as too much Cake :cake:

The rule must be targeted to be more specific so it applies to to paragraph only inside the header.
Maybe then like this:

 .group-icon-cake p.nr-dashboard-cardtitle::after {

I agree one cannot have enough cake :grinning: but in this case...
the cakes are still there

I just checked, the dashboard text node class field is empty, so its not that

In case I made a mistake typing

<style>
    .group-icon-cake p.nr-dashboard-cardtitle::after {
       content:"\e7e9";
       font-family: 'Material Icons';
       font-weight: normal;
       font-style: normal;
       font-size: 24px;
       display: inline-block;
       line-height: 1;
       text-transform: none;
       letter-spacing: normal;
       word-wrap: normal;
       white-space: nowrap;
       }
       </style>

Just use developer tools and try to figure out from where it comes.
I can't do blind debugging.

Not sure how I'd go about it. I'l focus on other projects I have with my dashboard, still plenty to do. This is low priority, its a nice to have so I'll come back to that later. By that time I should have picked up some more knowledge, I have picked up a lot lately and still adding every day.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.