Exemplo n.º 1
0
 static PolymerElement newIcon(String iconName) {
   Element icon = newElement("core-icon");
   icon.setAttribute("icon", iconName);
   return (PolymerElement) icon;
 }
Exemplo n.º 2
0
 public static void injectJs(String js) {
   Element scriptElem = createElement("script");
   scriptElem.setAttribute("language", "javascript");
   scriptElem.setTextContent(js);
   getBody().appendChild(scriptElem);
 }
Exemplo n.º 3
0
 static Element newIconButtonFloating(String iconName) {
   Element icon = newElement("paper-fab");
   icon.setAttribute("icon", iconName);
   return icon;
 }