The localStorage object
Store and retrieve data in localStorage.
Use localStorage
to save data locally to the browser.
Properties
All properties for localStorage with supported data types or values. You can write JavaScript almost anywhere in Retool to manipulate or read property values.
id
string
The unique identifier.
isHiddenOnDesktop
boolean
Whether the component is visible in the desktop layout.
isHiddenOnMobile
boolean
Whether the component is visible in the mobile layout.
maintainSpaceWhenHidden
boolean
Whether the component takes up space on the canvas if hidden
is true
.
pluginType
string
The plugin type.
showInEditor
boolean
Whether to remain visible in the editor if hidden
is true
.
Methods
JavaScript API methods for interacting with localStorage. You can write JavaScript almost anywhere in Retool and use methods to manipulate data and property values.