On 24 April 2017 at 15:10, Ignacio Manzano <[email protected]> wrote:
> Thanks! > > It is the key of the iron-list demo example, it is not mine :). ..it is in > the github's file > https://github.com/PolymerElements/iron-list/blob/master/demo/grid.html > >From what I can discern, the scroll-target attribute takes the name of a _variable_ which points to the HTML Element you wish to monitor for scroll events. In the example you shared from iron-list's repo the variable is the top-level `document` object. You can populate a variable using `var cc = document.getElementById('cc');` if you are sure you want to monitor scroll events on the element with the ID of "cc". I believe the variable needs to be either global or local to the element which hosts the `iron-scroll-threshold` instance. In the example from iron-list that meant the variable needed to be defined in the main document scope or the global scope; because `document` is in the global scope it satisfies that requirement. -- Daniel Llewellyn Bowl Hat 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/CABtuYwd%2B7n%3DvF5d68OTtEPnXZkB797KQPUsaNCFJxFdjq11bMg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
