-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/modularize parameter datasets #188
Changes from all commits
582f7a2
949ec40
05a5a1d
f27968c
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||
---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,75 @@ | ||||||||
parameter_datasets_ui <- function(id) { | ||||||||
ns <- NS(id) | ||||||||
navset_pill( | ||||||||
nav_panel("PP", DTOutput(ns("pp_dataset"))), | ||||||||
nav_panel("ADPP", DTOutput(ns("adpp_dataset"))) | ||||||||
) | ||||||||
} | ||||||||
|
||||||||
parameter_datasets_server <- function(id, res_nca) { | ||||||||
moduleServer(id, function(input, output, session) { | ||||||||
CDISC <- reactive({ | ||||||||
req(res_nca()) | ||||||||
export_cdisc(res_nca()) | ||||||||
}) | ||||||||
|
||||||||
output$pp_dataset <- DT::renderDataTable({ | ||||||||
DT::datatable( | ||||||||
data = CDISC()$pp, | ||||||||
rownames = FALSE, | ||||||||
extensions = c("FixedHeader", "Buttons"), | ||||||||
options = list( | ||||||||
scrollX = TRUE, | ||||||||
scrollY = TRUE, | ||||||||
searching = TRUE, | ||||||||
fixedColumns = TRUE, | ||||||||
fixedHeader = TRUE, | ||||||||
autoWidth = TRUE, | ||||||||
dom = "Bfrtip", | ||||||||
buttons = list( | ||||||||
list( | ||||||||
extend = "copy", | ||||||||
title = paste0("PP_Dataset", "_", Sys.Date()) | ||||||||
), | ||||||||
list( | ||||||||
extend = "csv", | ||||||||
title = paste0("PP_Dataset", "_", Sys.Date()) | ||||||||
), | ||||||||
list( | ||||||||
extend = "excel", | ||||||||
title = paste0("PP_Dataset", "_", Sys.Date()) | ||||||||
) | ||||||||
) | ||||||||
) | ||||||||
) | ||||||||
}) | ||||||||
|
||||||||
output$adpp_dataset <- DT::renderDataTable({ | ||||||||
DT::datatable( | ||||||||
data = CDISC()$adpp, | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: do not display row names
Suggested change
|
||||||||
extensions = c("FixedHeader", "Buttons"), | ||||||||
options = list( | ||||||||
scrollX = TRUE, | ||||||||
scrollY = TRUE, | ||||||||
lengthMenu = list(c(10, 25, -1), c("10", "25", "All")), | ||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. suggestion: allow user to copy/download all rows with a whole display of the dataset
Suggested change
|
||||||||
fixedHeader = TRUE, | ||||||||
dom = "Bfrtip", | ||||||||
buttons = list( | ||||||||
list( | ||||||||
extend = "copy", | ||||||||
title = paste0("ADPP_Dataset", "_", Sys.Date()) | ||||||||
), | ||||||||
list( | ||||||||
extend = "csv", | ||||||||
title = paste0("ADPP_Dataset", "_", Sys.Date()) | ||||||||
), | ||||||||
list( | ||||||||
extend = "excel", | ||||||||
title = paste0("ADPP_Dataset", "_", Sys.Date()) | ||||||||
) | ||||||||
) | ||||||||
) | ||||||||
) | ||||||||
}) | ||||||||
}) | ||||||||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: allow user to copy/download all rows with a whole display of the dataset