quick question if anyone has a hack for this.
I want a badge on one of my navbar elements just like in my sidenav.
I tried to use html in my navbarelement.text but its rendered as plain text.
In sidenav we have a option for badge-settings in the navbar we dont.
Does anyone has a hack/workaround for this? Or do i need to file a feature-request.
Try setting the Navbar menu item displayType to HTML_TEXT and putting the HTML in the text field as you did. I was able to add a %%tag%% reference in the text, but it only updated when interacting with the Navbar.
Edit: Just noticed that no event is fired when clicking a HTML_TEXT menu item which is no help. Having the navbar support a badgeText property would be a nice addition.