manolo / gwt-polymer-elements

Polymer Web Components for GWT. A collection of Material Design widgets for desktop and mobile.
Apache License 2.0
155 stars 49 forks source link

Paperbutton IronIcon missing icons #46

Closed neridonk closed 8 years ago

neridonk commented 9 years ago

i tried ->

ok/p:PaperButton this doesent work no icon and with PaperButtonElement button = Polymer.create(PaperButtonElement.TAG); // Set some properties button.setIcon("polymer"); <---Methode not button.setLabel("Polymer"); <--- Methode not found button.setRaised(true);
manolo commented 8 years ago

For using icons you always have to import manually the icons library:

Polymer.importHref(Arrays.asList(
    "iron-icons/iron-icons.html",
    "iron-icons/communication-icons.html", // import any icon collection in this way
    "iron-icon"
));