Skip to content

Commit

Permalink
reactable2: revert data access method
Browse files Browse the repository at this point in the history
  • Loading branch information
elong0527 committed Apr 11, 2024
1 parent e48b160 commit b9ee9fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/reactable2.R
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,15 @@ reactable2 <- function(data,
if (download) {
on_click <- paste0("Reactable.downloadDataCSV('", element_id, "')")

tbl <- htmltools::browsable(
htmltools::browsable(
htmltools::tagList(
htmltools::tags$button("Download as CSV", onclick = on_click),
tbl
)
)
} else {
tbl
}
attr(tbl, "data") <- tbl$data

}

Expand Down

0 comments on commit b9ee9fa

Please sign in to comment.