Skip to contents

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)

Examples

if (FALSE) {
 prepare_data_datatable(output = output, r = r, ns = ns, i18n = i18n, id = "settings_users",
table = "users", dropdowns = "user_status", action_buttons = "delete", data_input = r$users_temp)
}