Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Infinite Scroll #15

Open
giltig opened this issue Sep 23, 2014 · 3 comments
Open

Infinite Scroll #15

giltig opened this issue Sep 23, 2014 · 3 comments

Comments

@giltig
Copy link

giltig commented Sep 23, 2014

Hi,
Can you add to this table an infinite scroll capability?

@stevenrskelton
Copy link
Owner

I created an infinitePager template that shows a more button to manually load more results, but it still doesn't do it automatically. :(

This is a big usability feature which I also need so it will get done.

@frasator
Copy link

Probably you already know about this...

Infinite scroll is already implemented in polymer core-list, here is an example.
https://www.polymer-project.org/components/core-list/demo.html
https://www.polymer-project.org/docs/elements/core-elements.html#core-list

Maybe using core-list to render the rows could be a good solution,

@stevenrskelton
Copy link
Owner

The crux is where the scrolling happens. If scrolling happens outside of the web component, then we need to either pass in the ID of the element (div) that's scrolling, or assume it's on the window (which isn't a fair assumption) - all because we need to attach a listener to the scroll event.

Ideally I would like to implement scrolling within the sortable-table element, on the tbody element. But that's notorious for not supporting scrolling, or it does but it also breaks width alignments of the td and 'th' cells, forcing manual width assignments using Javascript or possibly CSS3.

In short, it's a lot of work - that I would love to copy off another component, but I don't see it on that one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants