HalitTalha / ng-material-extensions

Extended features for @angular/material components
Apache License 2.0
101 stars 52 forks source link

Option to export only the current page #80

Closed diasandreotti closed 4 years ago

diasandreotti commented 4 years ago

There is an option to export only the current page listed in the UI?

HalitTalha commented 4 years ago

This can be achieved by row selection. Row selection is done by toggling the row indices that's to be exporter. this.exporter.toggleRow(index) You can implement it by toggle on the rows at current page and off the old current page.

diasandreotti commented 4 years ago

Thanks, but so the exporter ends up going through the entire table to export only the desired lines. My question was whether there is a way to export only the current page, without the exporter alternating between all the pages.