R/toast-dependencies.R

Defines functions useToast

Documented in useToast

#' @rdname toast
#' @export
useToast <- function() {

  htmltools::htmlDependency(
    name = "toast",
    version = "0.1.0",
    src = c(file = "toast"),
    script = list(list(src = "js/iziToast.min.js", defer = NA),
                  list(src = "js/sbyToast.js", defer = NA)),
    stylesheet = "css/iziToast.min.css",
    package = "standby"
  )

}

Try the standby package in your browser

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

standby documentation built on Oct. 30, 2024, 9:30 a.m.