Skip to content
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

Information stored on local storage #1103

Open
jackyhosg opened this issue Jul 14, 2020 · 4 comments
Open

Information stored on local storage #1103

jackyhosg opened this issue Jul 14, 2020 · 4 comments
Labels
frontend The frontend interface
Milestone

Comments

@jackyhosg
Copy link

This function read the table search filters from the local storage of file:
https://github.com/userfrosting/UserFrosting/blob/master/app/sprinkles/core/assets/userfrosting/js/uf-table.js

Screen Shot 2020-07-14 at 11 19 03 AM

Can we store information using sessionStorage API instead of localStorage?

@alexweissman
Copy link
Member

What's the use case for this? To have users' settings follow them around in different devices?

@Silic0nS0ldier
Copy link
Member

localStorage would persist across sessions (and potentially browsers). sessionStorage gets cleared as soon as the last tab on the owning site is closed.

Relevant doc: https://mottie.github.io/tablesorter/docs/#function-storage

@alexweissman
Copy link
Member

Ah, didn't see that. So is this setting already exposed through ufTable then?

@alexweissman alexweissman added the frontend The frontend interface label Dec 3, 2020
@Silic0nS0ldier
Copy link
Member

Not that I can tell. Config object goes into param 4 and we pass in 2 params at most.
https://github.com/userfrosting/UserFrosting/blob/master/app/sprinkles/core/assets/userfrosting/js/uf-table.js#L407

@lcharette lcharette added this to the 6.0.0 milestone Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend The frontend interface
Projects
Status: References
Development

No branches or pull requests

4 participants