downloadButton_custom: Creating a Custom Download Button

View source: R/utils.R

downloadButton_customR Documentation

Creating a Custom Download Button

Description

Use this function to create a custom download button or link. When clicked, it will initiate a browser download. The filename and contents are specified by the corresponding downloadHandler() defined in the server function.

Usage

downloadButton_custom(
  outputId,
  label = "Download",
  class = NULL,
  status = "primary",
  ...,
  icon = shiny::icon("download")
)

Arguments

outputId

The name of the output slot that the downloadHandler is assigned to.

label

The label that should appear on the button.

class

Additional CSS classes to apply to the tag, if any. Default NULL.

status

The status of the button; default is "primary."

...

Other arguments to pass to the container tag function.

icon

An icon() to appear on the button; default is icon("download").

Value

An HTML tag to allow users to download the object.


shinyWGD documentation built on April 4, 2025, 2:28 a.m.