You're looking for the `getDistributedNodes` method on the `<content>` element. It's explained here:
http://www.html5rocks.com/en/tutorials/webcomponents/shadowdom-301/ On Tue, Jul 29, 2014 at 8:17 AM, <[email protected]> wrote: > I'm making a Polymer component to encapsulate some settings. I was > thinking one could put anything in the contents of this settings component > and it will internally figure out how to turn this into a URL. Settings > will be persisted just through GET variables. Settings will be used by > other components through regular Polymer databinding. > > So I want to iterate over the contents of the component's <content>, > looking for HTML inputs, selects, etc. I can't figure out how to do this. > I've tried accessing <content> by putting it inside a div, then using > this.$.myDiv, and I've also tried accessing the content directly by > assigning it an id, using this.$.myContent. In both cases, I can't find any > references to the content children. I see a childNodes field with 3 items > but none of these look right. > > Can someone help me access content or tell me if there is simply a better > approach here? > > Thanks! > > 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/fcf3cc4b-2167-4783-abba-e5a34a713ed4%40googlegroups.com > <https://groups.google.com/d/msgid/polymer-dev/fcf3cc4b-2167-4783-abba-e5a34a713ed4%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/CA%2BrMWZio%2BfYQ5jiex2z2A-iPDpy0tKnFrWX4TdrYNUZ7mvNp3Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
