Prepare data for datatable
prepare_data_datatable.Rd
Prepare data to be used in a DT datable
Usage
prepare_data_datatable(
output,
r = shiny::reactiveValues(),
ns = character(),
i18n = character(),
id = character(),
table = character(),
dropdowns = character(),
dropdowns_multiselect = character(),
dropdowns_null_value = character(),
factorize_cols = character(),
action_buttons = character(),
data_input = tibble::tibble()
)
Arguments
- output
Shiny output value, to show message bars
- r
Shiny reactive value, used to communicate between modules (reactiveValue)
- ns
Shiny namespace
- i18n
i18n Translator object from shiny.i18n library
- id
ID of the current page / module
- table
Table of the database containing the data (character)
- dropdowns
Names of the dropdowns displayed in the datatable (character)
- dropdowns_multiselect
Names of the dropdowns which have the multiSelect argument set to TRUE (character)
- dropdowns_null_value
Names of the dropdowns where a null value is added at the beginning (character)
- factorize_cols
Names of the columns which will be factorized, to be sortable (character)
- action_buttons
Names of the action buttons needed (character)
- data_input
The data which will be transformed (tibble)