R/dependencies.R

Defines functions valueBoxDependency toastrDependency feedbackDependency

#' @importFrom htmltools htmlDependency
feedbackDependency <- function() {
  htmltools::htmlDependency(
    name = "feedback",
    version = utils::packageVersion("shinyFeedback"),
    src = "assets",
    package = "shinyFeedback",
    script = "js/shinyfeedback.js",
    stylesheet = "css/shinyfeedback.css"
  )
}

#' @importFrom htmltools htmlDependency
toastrDependency <- function() {
  htmltools::htmlDependency(
    name = "toastr",
    version = "2.1.4",
    src = "assets/toastr",
    package = "shinyFeedback",
    script = c("js/toastr.min.js", "js/shinytoastr.js"),
    stylesheet = "css/toastr.min.css"
  )
}

#' @importFrom utils packageVersion
valueBoxDependency <- function() {
  htmltools::htmlDependency(
    name = "valueboxmodule",
    version = utils::packageVersion("shinyFeedback"),
    src = "assets",
    package = "shinyFeedback",
    stylesheet = "css/valuebox.css"
  )
}

Try the shinyFeedback package in your browser

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

shinyFeedback documentation built on Sept. 24, 2021, 5:07 p.m.