Add the shinyfocus.js
script to a shiny app exactly once. Adding this
script setups up the object used to detect changes in focus.
Value
An htmltools::htmlDependency()
, which shiny uses to add the
shinyfocus.js
script exactly once.
Examples
shinyfocus_js_dependency()
#> List of 10
#> $ name : chr "shinyfocus"
#> $ version : chr "0.0.1"
#> $ src :List of 1
#> ..$ file: chr "js"
#> $ meta : NULL
#> $ script : chr "shinyfocus.js"
#> $ stylesheet: NULL
#> $ head : NULL
#> $ attachment: NULL
#> $ package : chr "shinyfocus"
#> $ all_files : logi TRUE
#> - attr(*, "class")= chr "html_dependency"