Hey guys! new to Code Forum.
Does anyone here know how to use the API wix-storage ?
(I grabbed this from the API reference)
import {session} from ‘wix-storage’;
session.setItem(“key”, “value”);
As I can see, “key” and “value” are strings, but I don´t understand how to identify what I should write on those spaces
It depends on your data.
Do you have a concrete example of the data you wish to add ?
If you already have a site, please provide the url to it, or your user name and site name.
Thank you so much for answering my post. I don´t actually have a site created already, I just have a “sketch” site were Im trying to develop some tools for my web site.
What I want to be saved is the enabled/disabled property of a button when a user disables it (already been coded and works just fine) but when I reload the site, the change isn´t saved, so I want that property to be saved. Is it possible to keep that change in “local” as a permanent change? so it appears in every browser for other users. Or is there any way to create a “save changes” button???