FlowingCode/AppLayoutAddon

Support Vaadin Icons

claspina opened this issue · 1 comments

Can be possible to add support to using vaadin icons in menu item?

It's already supported (since vaadin-icon works with iron-icon)

  1. Add a dependency with Vaadin Icons
<dependency>
   <groupId>org.webjars.bowergithub.vaadin</groupId>
   <artifactId>vaadin-icons</artifactId>
   <version>4.2.0</version>
</dependency>
  1. Import Vaadin Icons from the view
@HtmlImport("frontend://bower_components/vaadin-icons/vaadin-icons.html")
  1. Reference the icon using vaadin: prefix
new MenuItem("Test", "vaadin:vaadin-h", () -> {...})