R/shinyMobile-dependencies.R

Defines functions add_shinyMobile_deps

Documented in add_shinyMobile_deps

#' shinyMobile dependencies utils
#'
#' @description This function attaches shinyMobile dependencies to the given tag
#'
#' @param tag Element to attach the dependencies.
#'
#' @importFrom utils packageVersion
#' @importFrom htmltools tagList htmlDependency
#' @keywords internal
add_shinyMobile_deps <- function(tag) {
 shinyMobile_deps <- htmlDependency(
  name = "shinyMobile",
  version = packageVersion("shinyMobile"),
  src = c(file = "shinyMobile-1.0.1"),
  script = "js/shinyMobile.min.js",
  stylesheet = "css/shinyMobile.css",
  package = "shinyMobile",
 )
 tagList(tag, shinyMobile_deps)
}
RinteRface/shinyF7 documentation built on March 3, 2024, 7:29 a.m.