setLocalStorage: setLocalStorage

Description Usage Arguments Details

Description

Set localStorage values in the user's browser what will be accessible by the app the next time the user accesses the page.

Usage

1
setLocalStorage(session, ..., .dots)

Arguments

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.

Details

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.


ebailey78/shinyLocalStorage documentation built on May 15, 2019, 7:30 p.m.