Description Usage Arguments Details
Set localStorage values in the user's browser what will be accessible by the app the next time the user accesses the page.
1 | setLocalStorage(session, ..., .dots)
|
session |
The session object passed to function given to shinyServer |
.dots |
A list of values you want to add to localStorage in the user's browser. |
... |
Any values you want to add to localStorage in the user's browser. |
Each value passed to setLocalStorage
should be named. Any unnamed value
will be silently dropped. Values set with setLocalStorage
can be accessed
in the server from input$localStorage
. For example, if you set x = 5
with setLocalStorage
you can access that value from input$localStorage$x
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.