mirror of
https://github.com/agdamsbo/FreesearchR.git
synced 2025-09-12 18:09:39 +02:00
passing additional arguments and applying pagination
This commit is contained in:
parent
96227d5006
commit
f9c585a5fe
2 changed files with 6 additions and 3 deletions
|
@ -12,10 +12,11 @@ data_summary_ui <- function(id) {
|
|||
}
|
||||
|
||||
|
||||
#' @param id id
|
||||
#'
|
||||
#' @param data data
|
||||
#' @param color.main main color
|
||||
#' @param color.sec secondary color
|
||||
#' @param ... arguments passed to toastui::datagrid
|
||||
#'
|
||||
#' @name data-summary
|
||||
#' @returns shiny server module
|
||||
|
@ -23,7 +24,8 @@ data_summary_ui <- function(id) {
|
|||
data_summary_server <- function(id,
|
||||
data,
|
||||
color.main,
|
||||
color.sec) {
|
||||
color.sec,
|
||||
...) {
|
||||
shiny::moduleServer(
|
||||
id = id,
|
||||
module = function(input, output, session) {
|
||||
|
|
|
@ -173,7 +173,8 @@ server <- function(input, output, session) {
|
|||
rv$data_filtered
|
||||
}),
|
||||
color.main = "#2A004E",
|
||||
color.sec = "#C62300"
|
||||
color.sec = "#C62300",
|
||||
pagination = 20
|
||||
)
|
||||
|
||||
#########
|
||||
|
|
Loading…
Add table
Reference in a new issue