Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign updownloadBttn is only clickable on the label #271
Comments
|
Hello, Thanks, you're welcome :) Yes this is confusing for users, I updated the function, if you re-install from GitHub, the whole button is clickable, e.g.: library(shiny)
library(shinyWidgets)
ui <- fluidPage(
tags$h2("Download bttn"),
downloadBttn(
outputId = "downloadData",
style = "bordered",
color = "primary",
block = TRUE
)
)
server <- function(input, output, session) {
output$downloadData <- downloadHandler(
filename = function() {
paste('data-', Sys.Date(), '.csv', sep='')
},
content = function(con) {
write.csv(mtcars, con)
}
)
}
shinyApp(ui, server)Victor |
|
Works! Small issue: When |

Hi, and thank you for the great package.
I am using downloadButtn with
block=TRUEargument, with which I am stretching the button to fill the box it is in. However even though the button stretches, the only clickable part is the label of the button. Is there an easy way to stretch the link to cover the entire button and not just the label?The exact button
downloadBttn(outputId = "filtered_csv", label = "Download CSV", style = "material-flat", color = "primary", size="sm", block = TRUE)Thanks a lot!