R/framework7-dependencies.R

Defines functions add_framework7_deps

Documented in add_framework7_deps

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