2 weeks ago
Hi Team
I have an application with an HTML container and the content for this HTML container comes from the backend.
The content can have multiple tables and I am able to generate a custom button against each HTML table & handle the personalization at runtime by providing a custom dialog to user for columns selection & based on the selections, I would set/remove the "hidden" class against columns at runtime.
The problem now is that there could be some actions that could refresh the application. It means the application will fetch & load the HTML data from the backend and the user will have redo the table personalization again.
Could you help how to persist the user personalization for this scenario?
I was going through some of the blogs that used iapp-state to achieve similar functionality but they would modify URL to save the iapp-state which I want to avoid as it affects the design of my existing complex application.
Thanks in advance
It sounds like you want to save the configuration settings so they're remembered even after you refresh the page. Have you considered using JavaScript's localStorage for this purpose? It's a great way to store data locally on the user's browser for persistence.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's a valid concern! LocalStorage might not be ideal if data may contain private user information.
As an alternative, you can use sessionStorage api. It's similar to localStorage, but data gets cleared when the user closes the browser tab or window. This is a good option for temporary configurations that don't need to persist across sessions. However, If you require data to be available across multiple sessions, consider storing it on your server's backend. This ensures a more secure and persistent storage solution for sensitive information.
User | Count |
---|---|
78 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.