You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- webStorage: Required value. localStorage, sessionStorage or other object that implements the Storage interface.
123
123
- reactiveStorage: Required value. ref or reactive object.
124
-
- prefix: Optional value. Used to segment the Storage object, the prefix is added to key (using '-') in Storage object. For example:
124
+
- prefix: Optional value. Used to segment the Storage object, the prefix is added to key (using '-') in Storage object. Generally used when using multiple app instances. For example:
- loadDataFromWebStorage: Optional value. By default is true. Loads the keys/values inStorage object to reactive object when the load event is fired by windowobject. Useful when closing and opening the
160
160
browser window.
161
161
162
-
- ### <a id="about-reactive-local-storage-methods"></a> About the ReactiveLocalStorage methods
162
+
- ### <a id="about-reactive-web-storage-methods"></a> About the ReactiveWebStorage methods
163
163
164
-
The `ReactiveLocalStorage` object provides an interface similar to the Storageinterface, this methods are:
164
+
The `ReactiveWebStorage` object provides an interface similar to the Storageinterface, this methods are:
165
165
166
-
-`(getter) length`: Obtains the number of elements saved inreactiveLocalStorage.
167
-
-`(method) key(index)`: Returns the key in nth position into reactiveLocalStorage.
168
-
-`(method) getItem(key, parseOptions = {})`: Returns the parsed key's value saved into reactiveLocalStorage.
169
-
- `(method) setItem(key, item, serializeOptions = {})`: Saves the pair key/value into reactiveLocalStorage.
170
-
- `(method) removeItem(key)`: Removes the pair key/value from reactiveLocalStorage.
171
-
- `(method) clear()`: Removes all pairs key/value into reactiveLocalStorage.
166
+
-`(getter) length`: Obtains the number of elements saved inreactiveWebStorage.
167
+
-`(method) key(index)`: Returns the key in nth position into reactiveWebStorage.
168
+
-`(method) getItem(key)`: Returns the parsed key's value saved into reactiveWebStorage.
169
+
- `(method) setItem(key, item)`: Saves the pair key/value into reactiveWebStorage.
170
+
- `(method) removeItem(key)`: Removes the pair key/value from reactiveWebStorage.
171
+
- `(method) clear()`: Removes all pairs key/value into reactiveWebStorage.
172
172
173
173
And include others methods:
174
174
175
-
- `(getter) reactiveStorageAdapter`: Returns the reactiveStorageAdapter (object that wraps the reactiveStorage using an insterface similar to Storage) object used by reactiveLocalStorage instance.
175
+
- `(getter) reactiveStorageAdapter`: Returns the reactiveStorageAdapter (object that wraps the reactiveStorage using an insterface similar to Storage) object used by reactiveWebStorage instance.
176
176
- `(getter) reactiveStorage`: Returns the reactiveStorage object used by reactiveWebStorage instance.
177
177
178
178
- ### <a id="composition-api"></a> Use the composition API:
0 commit comments