powered by
Add the js-cookie Javascript library as an HTML dependency, and make cookies available in the shiny input object.
cookie_dependency()
An htmltools::htmlDependency(), which shiny uses to add the js-cookie Javascript library exactly once.
htmltools::htmlDependency()
Call this function within your shiny ui to attach the necessary JavaScript code.
Run the code above in your browser using DataLab