filter_manager_module_srv: Module specific filter manager

View source: R/module_filter_manager.R

filter_manager_module_srvR Documentation

Module specific filter manager

Description

Tracks filter states in a single module.

Usage

filter_manager_module_srv(id, module_fd, slices_global)

Arguments

id

(character(1)) shiny module id.

module_fd

(FilteredData) Object containing the data to be filtered in a single teal module.

slices_global

(reactiveVal) stores teal_slices with all available filters; allows the following actions:

  • to disable/enable a specific filter in a module

  • to restore saved filter settings

  • to save current filter panel settings

Details

This module tracks the state of a single FilteredData object and global teal_slices and updates both objects as necessary. Filter states added in different modules Filter states added any individual module are added to global teal_slices and from there become available in other modules by setting private$available_teal_slices in each FilteredData.

Value

A reactive expression containing the slices active in this module.


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