In the Serenety side bar theres the following?
icon=""
where are these icons defined and how do i get an overview of the icon / value mapping?
can they be used outside the sidebar?
Kim
Sidebar icons
Forum rules
Please note that response time for technical support is within 3-5 business days.
Please note that response time for technical support is within 3-5 business days.
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Serenity uses Material icons; https://material.io/icons/
You can use material icons everywhere in page. Also,
- For modern browsers, you can use icon="delete"
- For all browsers(modern browsers and IE9 or below), you need to use icon=""
You can use material icons everywhere in page. Also,
- For modern browsers, you can use icon="delete"
- For all browsers(modern browsers and IE9 or below), you need to use icon=""
Github Profile: https://github.com/mertsincan
Thanks for your reply.
It works perfectly when writing the name of the material icon. and i don't care for older browsers.
but if i want to change to a FA icon i'd write:
<pm:menu>
<p:menuitem id="sr_dashboard" value="Start" icon="fingerprint" outcome="/user/index"/>
<p:menuitem id="sr_search" value="Søg" icon="fa fa-search" outcome="/user/search"/>
but the icon does not appear in the menu.
i have the following in my web.xml
<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>
am I missing something here?
It works perfectly when writing the name of the material icon. and i don't care for older browsers.
but if i want to change to a FA icon i'd write:
<pm:menu>
<p:menuitem id="sr_dashboard" value="Start" icon="fingerprint" outcome="/user/index"/>
<p:menuitem id="sr_search" value="Søg" icon="fa fa-search" outcome="/user/search"/>
but the icon does not appear in the menu.
i have the following in my web.xml
<context-param>
<param-name>primefaces.FONT_AWESOME</param-name>
<param-value>true</param-value>
</context-param>
am I missing something here?
Primefaces 6.2 / Glassfish 5 / Payara 5.182
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
Added fontawesome support to next version.
Regards,
Regards,
Github Profile: https://github.com/mertsincan
-
- Posts: 5281
- Joined: 29 Jun 2013, 12:38
You're welcome!
Github Profile: https://github.com/mertsincan
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests