How-to select dynamic nodes in Polymer? -
i trying set mouse events element stamped out dom-repeat. event should trigger style change different element in dom-repeat template, color change icon in box on box hover.
as automatic node finding not available dynamic nodes, docs should use $$ selector.
however, $$ returns first node in local dom matches selector, , want hover effect boxes stamped out dom-repeat.
as $$ selects element's property, leaves me thinking need set dynamic attribute icon dom-repeat, can select every repeated icon instance in mouse event change functions.
the repeater gives me index, how set dynamic property it, instead of dynamic value?
what missing?
this should want:
var nodes = polymer.dom(this.root).queryselectorall(...)
if modify dom might need use polymer.dom(...)
api individual nodes modifying.
polymer.dom(nodes[i])...
Comments
Post a Comment