R/deps.R

Defines functions get_dashboard_dependencies

Documented in get_dashboard_dependencies

#' Get the semantic.dashboard dependencies
#'
#' @description To add dependencies in the future follow the \code{\link[htmltools]{htmlDependency}}
#'   help.
#'
#' @return semantic.dashboard dependencies
#' @keywords internal
get_dashboard_dependencies <- function() {
  list(
    htmlDependency(
      "semantic.dashboard",
      as.character(utils::packageVersion("semantic.dashboard")),
      c(file = system.file(package = "semantic.dashboard")),
      script = c("semantic.dashboard.min.js", "updateTabItems.js"),
      stylesheet = "semantic.dashboard.min.css"
    )
  )
}
Appsilon/semantic.dashboard documentation built on April 21, 2024, 2:42 p.m.