Skip to contents

function to generate a ssz-themed download button for csv and excel, wraps around downloadButton

Usage

sszDownloadButton(
  outputId,
  label = c("Download", "CSV", "XLSX"),
  image = NULL,
  icon = NULL,
  ...
)

Arguments

outputId

shiny outputID for the download button

label

character string specifying the button label. Must be one of "Download", "CSV" or "XLSX", default is "Download"

image

html-i tag with an image/icon to be added before the text; default NULL

icon

optional icon parameter for downloadButton, default NULL

...

optional further named params for downloadButton (class parameter will be ignored/overwritten)

Value

a downloadButton with class sszDownload and optionally the image added

Examples

if (FALSE) { # \dontrun{
inst / examples / sszDownloadButton / app.r
} # }