Repository navigation
Keep filters when clicking to another page of the website #94
Unanswered
EnterOrion
asked this question in
Q&A
Replies: 2 comments 2 replies
|
Hi @EnterOrion, did you ever get to resolving this? I am facing the same issue. I was thinking of saving the filters when the user clicks away and then re-applying them when they go back but I am not sure if there is a better method. |
2 replies
|
You could use an instance of TableHandler a little higher in your tree. import { TableHandler } from '@vincjo/datatables'
export const table = new TableHandler([])In your component, use import { table } from '../'
let { data } = $props()
table.setRows(data)This way you can keep user settings after a page change |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi,
In my table in my application, each row acts as a link to go to a detailed page about that record. When I click back, the filters on the table are gone. Is there an easy way to keep the filters so that when the user goes back they don't have to retype the filters all over again?
Any help would be appreciated.
Thank you! And thank you for creating such an awesome library!
All reactions