mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
add download attribute to the a tag that generates downloadButoon and downloadLink
This commit is contained in:
committed by
Joe Cheng
parent
b7112a1edd
commit
7cd3bb524c
@@ -1448,6 +1448,7 @@ downloadButton <- function(outputId,
|
||||
class=paste('btn btn-default shiny-download-link', class),
|
||||
href='',
|
||||
target='_blank',
|
||||
download=NA,
|
||||
icon("download"),
|
||||
label)
|
||||
}
|
||||
@@ -1459,6 +1460,7 @@ downloadLink <- function(outputId, label="Download", class=NULL) {
|
||||
class=paste(c('shiny-download-link', class), collapse=" "),
|
||||
href='',
|
||||
target='_blank',
|
||||
download=NA,
|
||||
label)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user