cookie_dependency: Attach the js-cookie javascript library for shiny

View source: R/ui_wrapper.R

cookie_dependencyR Documentation

Attach the js-cookie javascript library for shiny

Description

Add the js-cookie Javascript library as an HTML dependency, and make cookies available in the shiny input object.

Usage

cookie_dependency()

Details

Call this function within your shiny ui to attach the necessary JavaScript code.

Value

An htmltools::htmlDependency(), which shiny uses to add the js-cookie Javascript library exactly once.

Examples

cookie_dependency()

cookies documentation built on Oct. 3, 2023, 1:07 a.m.