inst/examples/SuperTinyIcons/global.R

js <- function(icon){
  sprintf(
    "() => {
      setState(\'icon\', \'%s\');
      getHookProperty(\'disclosure\', \'onOpen\')();
    }",
    paste0(icon, "TinyIcon")
  )
}

Try the shinyChakraUI package in your browser

Any scripts or data that you put into this service are public.

shinyChakraUI documentation built on Jan. 5, 2022, 5:08 p.m.