void main() {
initPolymer().run(() {
XmlElement xml = XML.parse(defaultXmlString);
XmlCollection<XmlElement> theme = xml.query("colorTheme");
theme[0].children.forEach((XmlElement e){
var inputBox = new Element.tag("input-box");
inputBox.id = e.name;
inputBox.name = e.name;
String s = '''multi line
string''';
selection;
container.append(inputBox);
});
appendTitle(querySelector("#output").querySelectorAll("span"));
});
}
@CustomTag('input-box')
class InputBox extends PolymerElement {
@published String name = "default";
@published String color = "#ff0000";
InputBox.created() : super.created() {}
static void one(String className,empty){
one(className,empty);
}
void setBackground(){
List l = querySelectorAll(".$name");
if(name == "currentLine"){
l.forEach((HtmlElement e){
e.style.backgroundColor = color;
});
}
}
}