Jan
10/27/2023, 6:39 AMMerel
10/27/2023, 8:12 AMTynan
10/27/2023, 9:12 AMJan
10/27/2023, 9:31 AMTynan
10/27/2023, 9:39 AMconst kedroVizRunMetadata = localStorage.getItem("KedroViz-runs-metadata");
kedroVizRunMetadata
would return something like this:
{
"2022-12-24T21.05.59.296Z": {
"bookmark": true,
"title": "My title here",
"notes": ""
},
"2022-10-05T12.22.35.825Z": {
"bookmark": true
}
}
Jan
10/27/2023, 9:42 AMlocalStorage
from? I guess I can also then update the localstorage?Tynan
10/27/2023, 9:45 AMlocalStorage
is a native browser property. more here. if you wanted to update a record, you would use the setItem
method, like this:
localStorage.setItem("KedroViz-runs-metadata", JSON.stringify({"2022-12-24T21.05.59.296Z":{"bookmark":true,"title":"My UPDATED title here","notes":""},"2022-10-05T12.22.35.825Z":{"bookmark":true}}));
Jan
10/27/2023, 9:53 AMTynan
10/27/2023, 9:57 AM