View source: R/mod_filtersUI.R
mod_filtersUI | R Documentation |
A shiny module to generate and process the filters
mod_filtersUI(id)
mod_filters(
input,
output,
session,
lang,
data_reactives,
cache,
var_thes,
numerical_thes,
texts_thes,
categorical_thes
)
id |
shiny id |
input |
internal |
output |
internal |
session |
internal |
lang |
lang reactive value |
data_reactives |
reactives from the dataInput module |
cache |
cache_mem object to store the filters values |
var_thes , numerical_thes , texts_thes , categorical_thes |
thesauruses |
The logic is the following: With the available variables on the data, meaning main table, plots table and dynamic table if any, lets build inputs in three categories, results, climatic and other. When any variable is selected, create an on the fly input (in a loop), and collect the value for the input. This should be cached, this way if the user selects a variable and set a value to filter, but after they select another variable, the first one set values are remembered. After collecting the inputs, we need to build non evaluated filter expressions to return, as they will be needed later in the data retrieving module.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.