TurboTable make filters route persistent

UI Components for Angular
Post Reply
tricky10
Posts: 79
Joined: 25 Oct 2010, 08:52
Location: Poland

10 Jul 2018, 19:21

Hi,

I need to have my filter of p-table components to be stateful (users are filtering data, routes to other components than come back and would like to have the last state of the provided filter). So every time i "come back" from any point to the component with p-table the state of the filter should be restored.
How could I i achive that ? I know that I could store filter in singleton service (map) and this is ok but I;ve noticed that I also need ot keep my filter headers state otherwise my data is being filtred but I don't see the input values of the filter itself inside header template. I always use lazy loading approach with "typescript" header definition.
Let's say we would like to store the filter between routes for the example at primeng
https://www.primefaces.org/primeng/#/table/filter

What is the best way to do it?
Maybe there is a out of the box solution?
What are the best practices - patterns?

BTW
I've seen some features for old p-dataTable to persist the state of the filter but i don't know what is the current state for TurboTable.


Regards
Tomasz
Glassfish Application Server V3.1.2.2
Primefaces Library 3.5 FINAL
Sun Mojarra 2.1.20

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 17 guests