R/f7icons-dependencies.R

Defines functions add_f7icons_deps

Documented in add_f7icons_deps

#' Framework7 icon dependencies
#'
#' @description This function attaches icon dependencies to the given tag.
#'
#' @param tag Element to attach the dependencies.
#'
#' @importFrom htmltools tagList htmlDependency
#' @export
add_f7icons_deps <- function(tag) {
  icon_deps <- htmlDependency(
    name = "f7-icons",
    version = "3.0.0",
    src = c(file = "f7icons"),
    package = "shinyMobile",
    stylesheet = "css/framework7-icons.css",
    all_files = TRUE
  )
  tagList(tag, icon_deps)
}

Try the shinyMobile package in your browser

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

shinyMobile documentation built on Nov. 25, 2022, 5:05 p.m.