-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pagination doesn't work if used with MatTableDataSource & MatSort #364
Comments
Hi, I don't personally have any experience using the Material data-table, but from just looking over the docs it seems that the
This library is designed to work with Plus it seems like the Material data table has its own pagination implementation: https://material.angular.io/components/table/overview#pagination Why not use that one instead? |
Material data table has its own pagination implementation, but the UI required it completely different. So I preferred using ngx-pagination. |
I'm afraid I won't be able to work on support myself. I do not use the Material components personally. But I am open to supporting it is someone wants to put in a pull request. |
Hello. You are trying to use the pagination pipe in the Since you are using the
The Hope it helps. |
Hi,
Angular version: 7.0.0
Angular Material version: 7.0.0
ngx-pagination version: 5.0.0
Description of issue: I cannot see the number of pages or traverse using Next/Prev if pagination is used with MatTableDataSource. If MatTableDataSource is skipped it works fine but I want to using MatSort feature of angular material which requires usage of MatTableDataSource.
Steps to reproduce:
Expected result: Pagination should work properly.
Actual result: Pagination doesn't work
Demo: https://stackblitz.com/edit/angular-c8qkvb
The text was updated successfully, but these errors were encountered: