mirror of
https://github.com/ToolJet/ToolJet
synced 2026-04-25 23:47:17 +00:00
* add getter function and table transformation docs * add dropdown, number-input, password-input and text-input docs * [docs] custom parameters for queries * update docs for revamped components, runJS and runPy functions and sidebar * change order of properties and other misc changes * update query panel and other minor fixes * added version 2.29.0 --------- Co-authored-by: Shubhendra <withshubh@gmail.com>
1.6 KiB
1.6 KiB
| id | title |
|---|---|
| set-localstorage | Set localStorage |
Set localStorage
This action allows you to specify a key and its corresponding value to be stored in localStorage.
Example: App that stores a name in localStorage and displays it on reload
- Add an input field, button and a text as shown
- Select the button and add a
Set localStorageaction withkeyset tonameand value pointing at the value of the text field
- Select the text label we've added and set its value to the name item from localStorage.
:::info
Debounce field is empty by default, you can enter a numerical value to specify the time in milliseconds after which the action will be performed. ex: 300
:::
-
Now save the application, this is important as we're about to reload the page.
-
Type in anything you wish on the input box and click on the button
- Reload the page, you'll see that the value stored in local storage is persisted and it is displayed on screen!




