I have a component that adds a menu option ("Connect Daily Calendar") to the Joomla Components menu.
What I would like to do is under certain circumstances "decorate" the menu option's text. For example, if some condition is met, put an exclamation point or similar icon on the menu option indicating that there's a condition that needs taken care of.
For example, if they haven't yet created a calendar event, have an exclamation point on the menu option indicating there's a message pending.I understand how to enqueue the message after they land on my component's page.
I do have a running system plugin, and I know how to hook into onAfterRoute() to show messages. For example, I'm planning on enqueueing a message on the content editor page that tells the user how to access the extension's plugin insertion dialog. I just want to be very specific about adding messages. If something isn't a critical issue, then I want to display the hint on my menu pad.
I've poked around JMenu and JMenuItem, but I just don't quite see what to do. I "think" if I could could get a reference to the JMenuItem for my component, then I could check the condition and adjust the img property. I'm just stuck at the right path.
Any help would be appreciated.