mushroom
mushroom

Reputation: 1945

Passing reference of HTMLElement to Polymer element

<div id="main">
  ...
  <x-element></x-element>
  ...
</div>

How do I pass a reference to div#main to x-element? I need it so that my iron-list element inside x-element can point to div#main as the scroll-target.

Upvotes: 0

Views: 128

Answers (1)

a1626
a1626

Reputation: 2964

You can place <content></content> inside your iron-list element and then pass your div element inside x-element tags. This way Polymer will render your div tag inside the iron-list. You can read more about it here

Upvotes: 1

Related Questions