Support Vaadin Icons
claspina opened this issue · 1 comments
claspina commented
Can be possible to add support to using vaadin icons in menu item?
javier-godoy commented
It's already supported (since vaadin-icon works with iron-icon)
- Add a dependency with Vaadin Icons
<dependency>
<groupId>org.webjars.bowergithub.vaadin</groupId>
<artifactId>vaadin-icons</artifactId>
<version>4.2.0</version>
</dependency>
- Import Vaadin Icons from the view
@HtmlImport("frontend://bower_components/vaadin-icons/vaadin-icons.html")
- Reference the icon using
vaadin:
prefix
new MenuItem("Test", "vaadin:vaadin-h", () -> {...})