You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been working on a UI extension and didn't find any way to configure an icon for it. It's not a big problem, but label looks a little bit out of place in the side menu (see Extension 1 on the screenshot):
After some source code investigation, I discovered that menu icons are configured via static map:
we have implemented the feature you requested. Beginning from next release it will be possible to set or override group icons by using the new function SBA.viewRegistry.setGroupIcon(name: string, icon: string) as shown here.
We decided to not add an icon property to a view, but groups in general. Hence, you have to set the group property of your views and then set an icon for the group using the function mentioned above.
If you do not want to set a specific group name, you can also override the icon for the default group called none.
I've been working on a UI extension and didn't find any way to configure an icon for it. It's not a big problem, but label looks a little bit out of place in the side menu (see
Extension 1
on the screenshot):After some source code investigation, I discovered that menu icons are configured via static map:
spring-boot-admin/spring-boot-admin-server-ui/src/main/frontend/views/index.ts
Lines 39 to 53 in e4d7cc8
So it doesn't look like there is a way to extend it.
It would be nice to have an ability to provide an icon in SBA extension config.
My suggestion is to be able able to either provide it as a full html string:
Or just an svg path for more safety and control on the SBA side:
Please let me know if you need more details.
The text was updated successfully, but these errors were encountered: