shinyfilterset | R Documentation |
An R6 class to define a 'filter set', a collection of ui elements (sliders, pickers, etc.) to filter a dataset, for use in shiny applications.
shinyfilterset(
...,
data = NULL,
.list = NULL,
updates = NULL,
updates_on_last_use = NULL,
n_label = NULL,
all_data_on_null = TRUE,
id = NULL
)
data_filter(
column_name,
filter_ui = c("picker", "pickersearch", "select", "checkboxes", "slider",
"numeric_range", "numeric_min", "numeric_max", "date_range", "switch"),
label = column_name,
updates = TRUE,
updates_on_last_use = FALSE,
sort = TRUE,
all_choice = NULL,
n_label = TRUE,
search_method = c("equal", "regex"),
array_field = FALSE,
array_separator = ";",
array_comparison = "any",
server = FALSE,
round_digits = 1,
filter_function = NULL,
static = FALSE,
pass_na = FALSE,
select_choices = NULL,
options = list(),
ui_section = 1,
id = NULL
)
... |
The filters, or HTML elements. Define filters with |
This function makes a shinyfilterset objects, which has a number of methods and properties.
id, elements, filters
ui(), apply(), reactive(), update()
The shinyfilterset is made up of data_filter
objects, and optionally as many HTML tags as you
like, for layout purposes. These have to be constructed with shiny::tags
(see Examples).
Each data filter has properties and methods of its own, most of which don't need to be called directly
by the user.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.