module_tabs_with_filters: Add right filter panel into each of the top-level...

module_tabs_with_filtersR Documentation

Add right filter panel into each of the top-level teal_modules UIs

Description

The ui_nested_tabs function returns a nested tabbed UI corresponding to the nested modules. This function adds the right filter panel to each main tab.

Usage

ui_tabs_with_filters(id, modules, datasets, filter = teal_slices())

srv_tabs_with_filters(
  id,
  datasets,
  modules,
  reporter = teal.reporter::Reporter$new(),
  filter = teal_slices()
)

Arguments

id

(character(1)) module id

modules

(teal_modules) object containing the output modules which will be displayed in the teal application. See modules() and module() for more details.

datasets

(named list of FilteredData) object to store filter state and filtered datasets, shared across modules. For more details see teal.slice::FilteredData. Structure of the list must be the same as structure of the modules argument and list names must correspond to the labels in modules. When filter is not module-specific then list contains the same object in all elements.

filter

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

reporter

(Reporter) object from teal.reporter

Details

The right filter panel's filter choices affect the datasets object. Therefore, all modules using the same datasets share the same filters.

This works with nested modules of depth greater than 2, though the filter panel is inserted at the right of the modules at depth 1 and not at the leaves.

Value

A shiny.tag.list containing the main menu, placeholders for filters and placeholders for the teal modules.


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