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

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -