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
TurboTable make filters route persistent
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests