I am developing an Angular application where we can add or remove columns according to user choice and priority.
I want to create a table with a resizable columns width and store the resized column in the local storage so that the user can see the same width when he/she visit again.
Currently I am using below directive to resize columns.
Create Resizable Table Columns with Angular Directives
I am stuck how to store column with in storage and use same width when user revisit.
The best way to do this would be to explicitly store the values in
localStorageor in some cloud database, depending on how broadly you want to remember.You may need some method of identifying each column in your storage. This could be done with an additional
Input.You can retrieve these values in the
ngOnInitfunction: