Skip to content

Commit bfc7d9e

Browse files
Merge pull request #109 from Merck/104-allow-users-to-disable-download-as-csv
add one parameter to control download button
2 parents 1bc0cce + 686d67a commit bfc7d9e

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

R/ae_forestly.R

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#' If only one value is provided, it will be used as the maximum and minimum will be 0.
2828
#' @param width A numeric value of width of the table in pixels.
2929
#' @param max_page A numeric value of max page number shown in the table.
30+
#' @param dowload_button A logical value to display download button.
3031
#'
3132
#' @return An AE forest plot saved as a `shiny.tag.list` object.
3233
#'
@@ -50,7 +51,8 @@ ae_forestly <- function(outdata,
5051
filter_label = NULL,
5152
filter_range = NULL,
5253
width = 1400,
53-
max_page = NULL) {
54+
max_page = NULL,
55+
dowload_button = FALSE) {
5456
filter <- match.arg(filter)
5557

5658
# Handle filter_range parameter
@@ -184,6 +186,7 @@ ae_forestly <- function(outdata,
184186
hidden_item = paste0("'", outdata$hidden_column, "'", collapse = ", "),
185187
soc_toggle = display_soc_toggle,
186188
width = width,
189+
download = dowload_button,
187190
searchable = FALSE,
188191
details = function(index) {
189192
t_row <- outdata$tbl$name[index]

man/ae_forestly.Rd

Lines changed: 4 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)