downloadGGPlotButtonUI: Download Plot Button (UI)

View source: R/downloadGGPlot.R

downloadGGPlotButtonUIR Documentation

Download Plot Button (UI)

Description

Creates the user interface for a download button to download a ggplot

Usage

downloadGGPlotButtonUI(
  id,
  initialFileName = "",
  placeholder = "Select filename...",
  buttonLabel = "Download plot"
)

Arguments

id

A unique id name for this Shiny object. Should match up with 1 instance of downloadGGPlotButtonServer().

initialFileName

The default name that will be used for the filename of the downloaded file.

placeholder

Placeholder text for the filename input. This adds the placeholder attribute to the HTML input tag.

buttonLabel

Text to appear on the download link button.

Value

An inline form for downloading the ggplot, including filename, file format and the all-important download button.


keithnewman/shinyDownload documentation built on March 13, 2024, 6:35 a.m.