Information stored on local storage
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
Can we store information using sessionStorage API instead of localStorage?
What's the use case for this? To have users' settings follow them around in different devices?
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
Ah, didn't see that. So is this setting already exposed through ufTable then?
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