@tempots/dom
storedProp() function
Creates a stored property that persists its value in a storage mechanism.
Signature:
storedProp: ({ key, defaultValue, store, serialize, deserialize, equals, onLoad, }: StoredPropOptions) => Prop
Parameters
Parameter |
Type |
Description |
---|---|---|
{ key, defaultValue, store, serialize, deserialize, equals, onLoad, } |
Returns: Prop
- The created stored property.