Description Usage Arguments Value
View source: R/dynamic_table.R
Generate a server for handling a dynamic table and download handler function for a data.frame being displayed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | dynamic_table_server(
input,
output,
session,
base_data,
handler_col_styles = c("text", "text", "count", "count", "percent", "count", "count",
"percent"),
handler_col_names = c("Store Code", "Store Name", "Clients (#)", "Called (#)",
"Completed (%)", "In SLX (#)", "In Herringbone (#)", "Likely False (%)"),
excel_title = "Top Client Focus List",
excel_subtitle = "All Stores",
excel_sheetname = "Chain",
file_name = "The Excel File",
currency_pattern = "sale|returns|spend",
pct_pattern = "\\%",
path = "www",
extensions = c("Buttons", "FixedColumns", "RowGroup"),
colour_cols = list(c(3:7, 13:15), c(8:12)),
server = T,
row_names = NULL,
escape = F,
opts = dt_opts()
)
|
input |
standard shiny input onject |
output |
standard shiny output object |
session |
standard shiny session object |
base_data |
a *reactive* 'data.frame' with at least two string columns: - 'store' - 'segment' |
handler_col_styles |
'character array' array to handle the column styles into the excel file |
handler_col_names |
'character array' array to handle the column names for the excel file |
excel_title |
'character' title passed to the excel file |
excel_subtitle |
'character' subtitle passed to the excel file |
excel_sheetname |
'character' sheet name passed to the excel file |
file_name |
'character' file name to be set for the downloadable excel file |
currency_pattern |
The pattern for columns to format as a currency |
pct_pattern |
The pattern for columns to format as a percentage |
path |
location of additional resources, specifically the RowGroups.js |
extensions |
the selected extensions to add to the datatable output |
colour_cols |
The columns selected for adding colours |
server |
Server-side rendering of the data in a datatable output |
row_names |
Whether or not to enable row_names of the dynamic table |
escape |
Whether or not to provide the escape option for elements in the datatable |
opts |
Additional options to be passed to a datatable object |
a *reactive* 'data.frame' with the same structure as 'base_data' but containing only the rows represented by the UI selections
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.