A module that displays datasets as listings
listings_UI.Rd
This module displays a given dataset as listing. It allows switching between datasets if it receives more than one.
Usage
listings_UI(module_id)
listings_server(
module_id,
dataset_list,
default_vars = NULL,
dataset_metadata,
pagination = NULL,
intended_use_label = NULL
)
Arguments
- module_id
Shiny id
- dataset_list
[shiny::reactive(list(data.frame)]
A reactive list of data.framish dataset(s) that will be shown as listing.
- default_vars
[list(characters(1+)) | NULL]
A list of character vectors which contain the variable names to be displayed as default per dataset. Named according to the
dataset_names
. IfNULL
, the first six variables are displayed for each dataset.- dataset_metadata
[list(character(1), character(1+))]
A list with the following two elements:dataset_metadata$name()
containing a reactive string specifying the name of the selected dataset anddataset_metadata$date_range()
containing a reactive character vector with two entries specifying the earliest and latest modification date in the dataset. Usually obtained from module manager.- pagination
[logical(1) | NULL]
Either a boolean indicating if pagination should be activated, or NULL for which pagination will be activated for large datasets (nrows > 1000) automatically.- intended_use_label
[character(1) | NULL]
Either a string indicating the intended use for export, or NULL. The provided label will be displayed prior to the download and will also be included in the exported file.
See also
Other data_listings:
mod_listings()