On Sat, Jun 28, 2014 at 11:28 AM, <[email protected]> wrote: > > >> Thanks !!!! I'll read the whole page in details ASAP, I think it's a >>> vital need for my future polymer app' ! ;) >>> >> > This leads me to a new question : How can I, in polymer, select all the > elements with a class "myClass" for example? Is there any selector like in > jQuery? Do I have to create an id for each elements ? >
this.shadowRoot.querySelectorAll <https://developer.mozilla.org/en-US/docs/Web/API/Document.querySelectorAll> ('.myClass') `this` is your element `.shadowRoot` is the element's shadow root so `this.shadowRoot` scopes the querySelectorAll call to nodes in your element's shadow dom. > > Thanks by advances, > Regards. > > 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/2f259a50-ec0c-4c1c-b0b6-20032beb8785%40googlegroups.com > <https://groups.google.com/d/msgid/polymer-dev/2f259a50-ec0c-4c1c-b0b6-20032beb8785%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/CACGqRCDh0cgxtNNegTPb33zOPGwMcT8qVkCKif3YYnOPZts5PQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
