View source: R/app_module_selector_table.R
selectorTableServer | R Documentation |
This generates an rhandson table for selecting items to include in downstream operations.
selectorTableServer(
input,
output,
session,
id_column,
row_column = id_column,
column_select = NULL,
page_lengths = list(c(5, 10, 20, -1), c("5", "10", "20", "All")),
initial_page_length = page_lengths[[1]][1],
dom = "fltip",
selector_buttons = TRUE
)
id_column |
name of the ID column - make a rownumber or concatenated column if there is no unique identificer column otherwise |
row_column |
which column to use as the "row number", by default same as the id_column |
column_select |
dplyr select statement to choose displayed columns and headers, if not provided (=NULL), will display data table exactly as is (minus the id column which becomes the row number) |
page_lengths |
page length options, first one will be selected |
initial_page_length |
initially selected page length, first entry of the page_lengths by default |
dom |
the available table control elements and their order |
selector_buttons |
whether the selector buttons are present |
Other selector table module functions:
selectorTableButtons()
,
selectorTableUI()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.