components icon indicating copy to clipboard operation
components copied to clipboard

Provide extended Example for Table (Sort+Filter+Paginate)

Open Renader opened this issue 9 years ago • 3 comments

Bug, feature request, or proposal:

-> Proposal

What is the current behavior?

There are 3 examples for Sort, Filter and Paginating the table as Plunkers. Also there is a demo that provides a combined sort and pagination example. But there is no example that applies sorting, filtering and paginating to a table.

What is the use-case or motivation for changing an existing behavior?

Since this is a very common use case, and especially since the table has an API that might be hard to understand for RxJS beginners there should be an example combing all, and more important applies the common best practices (like reset the current page in paginator if the user filters - which is a common challenge https://github.com/angular/material2/issues/5812, update the length in paginator on filter etc)

What I've done so far: https://plnkr.co/edit/ABhRra9nNaBiu4vmAizX?p=preview

  • Sort
  • Filter
  • Paginate
  • proper disconnect cleanup
  • update paginators length on filter
  • jump to page 1 (0) on filtering

Renader avatar Aug 10 '17 07:08 Renader

They have already have it in this issue #5848. The extended table example is in plnkr.

fad250 avatar Aug 10 '17 16:08 fad250

@fad250 thank you for the link. I've missed it.

But you linked my plnkr, in think you wanted to link this extended example.

Therefore this issue can be considered invalid.

Renader avatar Aug 13 '17 09:08 Renader

This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.