hjalmers / angular-generic-table

A generic table for Angular 2+. Generic table uses standard markup for tables ie. table, tr and td elements etc. and has support for expanding rows, global search, filters, sorting, pagination, export to CSV, column clicks, custom column rendering, custom export values.
https://hjalmers.github.io/angular-generic-table/
MIT License
105 stars 55 forks source link

how can i select all row just in current page #273

Open MOHAMMADHMEAD opened 5 years ago

MOHAMMADHMEAD commented 5 years ago

hey,which the good idea to select all row in current page with out lazyloading ?

any idea ??

hjalmers commented 5 years ago

Well the select all method will return all records in your dataset if you're not lazy loading the data, and if you only want a subset you could always use the current page together with page length to get the records on the current page.

If you only want to select the records on the current page you could do the other way around. I.e. use the current page and record length together with the dataset and loop through the rows and select the ones you want.

What's the use case for this (might be that this is something the table should support internally)?

MOHAMMADHMEAD commented 5 years ago

I have messages in table i want select just messages in current page to set as read ,not all messages.