Closed Private-SO closed 6 years ago
when you say "refreshing" you mean hitting "reload" in the browser such that the whole page refreshes?
Yeah hitting "reload" in the browser.
OK. This kind of thing is pretty far out of scope of this pivot table component and gets into general-purpose javascript application development, which isn't really the type of question I can help with in this repo, sorry :)
Hi Guys,
It is a Question.
Basically i want to main the state of the component even after refreshing. Here is my code
My tips data file
Above code will show me the empty graph in the DOM first and after hitting button it will render the results. These results are perishing after refresh but i want to retain same state even after refresh . The update should happen only after i hit the Button.
I had googled for this they say i need to use
localstorage
for this. But even in localstorage i need to pass the state as JSON.stringify something like thisJSON.parse( localStorage.getItem( "pivotstate" ) );
i dont know how to passpivotstate
here.Any help is appreciated. Thanks