Nothing
#'Utility Functions
#'
#'Load the shiny drag and drop javascript dependencies
#'@import shiny htmltools
.onAttach <- function(...) {
# register the js input handler to make the element reactive
shiny::registerInputHandler("dragdropshiny.dropper", function(data,...) {
if (is.null(data) | data == "")
return(NULL)
else
return(data)
}, force = TRUE)
# Create link to javascript and css files for package, referenced below
shiny::addResourcePath("shinydnd", system.file("www", package = "shinyDND"))
}
# htmlDependency js and css will be used in other functions with attachDependency
shinyDNDDep = htmltools::htmlDependency("shinyDND", packageVersion("shinyDND"),
src = c("href" = "shinydnd"), script = "dragndrop.js", stylesheet = "dragndrop.css")
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.