R/shiny.R

Defines functions customDownloadButton

## CUSTOM SHINY FUNCTIONS ------------------------------------------------------

#' @importFrom shiny icon
#' @noRd
customDownloadButton <- function(outputId, 
                                 label = "Download",
                                 icon = "download",
                                 ...){
  tags$a(
    id = outputId, 
    class = "btn btn-default shiny-download-link", 
    href = "", 
    target = "_blank", 
    download = NA, 
    icon(icon), 
    label,
    ...
  )
  
}

Try the DataEditR package in your browser

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

DataEditR documentation built on March 18, 2022, 6:36 p.m.