Why not make class a computed binding? Otherwise use this.querySelectorAll
the $$ is a wrapper for the singular
On Apr 14, 2016 16:31, "Colin Cannon" <[email protected]> wrote:
> How can I select and add an additional class to all elements of a certain
> class that were created by a dom-repeat? For example:
>
> <template is="dom-repeat" items="{{foo}}>
> <div class="bar">{{item.spot}}</div>
> </template>
>
> In the Polymer() definition, how can I add an additional class,
> "secondClass" to add the div's with the class "bar"?
>
> this.$$(''bar") only returns the first div
>
> Follow Polymer on Google+: plus.google.com/107187849809354688692
> ---
> You received this message because you are subscribed to the Google Groups
> "Polymer" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/polymer-dev/75ebd564-30e0-45cf-939c-d7d4946d788d%40googlegroups.com
> <https://groups.google.com/d/msgid/polymer-dev/75ebd564-30e0-45cf-939c-d7d4946d788d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
Follow Polymer on Google+: plus.google.com/107187849809354688692
---
You received this message because you are subscribed to the Google Groups
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/polymer-dev/CADNgbTEYxFb9sAqxpqsDPWVccUJSXSZ2Wcnv%2Bz7CRUQqKiQr5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.