Hi,
Is there a way to my own font icons for the main menu items. There are only vaadin or lumo icons.
Thanks
Hi,
Is there a way to my own font icons for the main menu items. There are only vaadin or lumo icons.
Thanks
(post deleted by author)
Did you tried Vaadin Custom Icon API?
Icons | Components | Vaadin Docs
I don’t know wich Vaadin Version is currently icluded in JMIX…
But you can give every Menu Item a ID, and set the Icon later via Java Backend?
I did try the custom Vaadin API? However the class FontIcon is not avalaible in Jmix 2.1.2.
I tried to use the backend, but the MenuItem only specifiy a VaadinIcon which is restrictive. It should be rather using Icon interface from Vaadin framework.
Even using a defined VaadinIcon such academy-cap using Jmix studio it triggers the following exception:
Caused by: java.lang.IllegalArgumentException: No enum constant com.vaadin.flow.component.icon.VaadinIcon.vaadin:academy-cap
Hi,
The FontIcon
class is available since Vaadin 24.2+. Jmix 2.1 is based on Vaadin 24.1+.
In the upcoming Jmix 2.2 all new Vaadin icon classes will be available as well as the new method of setting icon for the MenuItem
: ListMenu.MenuItem#setPrefixComponent(Component)
.
This is known issue. It must be ACADEMY_CAP
instead of vaadin:academy-cap
.
Regards,
Gleb
How to change the application icon ( favicon.ico ) ?
Google: How to change favicon in JMIX… (2 Seconds)
Hi Gamer 08.
Thank you.
Found it out too and was rather searching for these ones and so on ( 32x32 ) …
<link sizes="16x16" rel="shortcut icon" href="icons/icon-16x16.png" type="image/png">