R/dependencies.R

Defines functions shinyglideLib glideLib

#' @importFrom htmltools htmlDependency

## Glide.js library

glideLib <- function() {
  htmltools::htmlDependency(
    name = "glide",
    version = "3.3.0",
    src = c(href = "shinyglide/glide"),
    stylesheet = "dist/css/glide.core.min.css",
    script = "dist/glide.min.js"
  )
}

## Package specific js and css

shinyglideLib <- function() {
  htmltools::htmlDependency(
    name = "shinyglide",
    version = "0.1",
    src = c(href = "shinyglide"),
    script = "shiny-glide.js",
    stylesheet = "shiny-glide.css"
  )
}

Try the shinyglide package in your browser

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

shinyglide documentation built on June 11, 2021, 5:15 p.m.