module_filter_manager: Manage multiple 'FilteredData' objects

module_filter_managerR Documentation

Manage multiple FilteredData objects

Description

Oversee filter states across the entire application.

Usage

filter_manager_ui(id)

filter_manager_srv(id, filtered_data_list, filter)

Arguments

id

(character(1)) shiny module id.

filtered_data_list

(named list) A list, possibly nested, of FilteredData objects. Each FilteredData will be served to one module in the teal application. The structure of the list must reflect the nesting of modules in tabs and the names of the list must match the labels of their respective modules.

filter

(teal_slices) Specifies the initial filter using teal_slices().

Details

This module observes changes in the filters of each FilteredData object and keeps track of all filters used. A mapping of filters to modules is kept in the mapping_matrix object (which is actually a data.frame) that tracks which filters (rows) are active in which modules (columns).

Value

A list of reactives, each holding a teal_slices, as returned by filter_manager_module_srv.


teal documentation built on May 29, 2024, 10:11 a.m.