OWOX / brainy-table

Polymer 1.x table element
https://owox.github.io/brainy-table/
MIT License
34 stars 9 forks source link

Feature request: auto detect page size depending on available screen height #7

Closed web-padawan closed 7 years ago

web-padawan commented 7 years ago

In some cases the table can be the only element on the page and users might expect to always see pagination at the bottom, without need to scroll. So the table should have an option like auto-resize (disabled by default) to calculate appropriate page size on resize events.

If the space is not enough, there should be a fallback to default rows count, e. g. 10 (we don't want to show table with 2-3 rows per page, as this would looks silly).

web-padawan commented 7 years ago

We decided that this should be delegated to the other element, which will handle iron-resize events and produce pageSize property based on some config, like offset etc.