mod_filtersUI: mod_filtersUI and mod_filters

View source: R/mod_filtersUI.R

mod_filtersUIR Documentation

mod_filtersUI and mod_filters

Description

A shiny module to generate and process the filters

Usage

mod_filtersUI(id)

mod_filters(
  input,
  output,
  session,
  lang,
  data_reactives,
  cache,
  var_thes,
  numerical_thes,
  texts_thes,
  categorical_thes
)

Arguments

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

Details

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.


MalditoBarbudo/nfiApp documentation built on June 13, 2025, 9:13 p.m.