module_nested_tabs | R Documentation |
teal_modules
Create a UI of nested tabs of teal_modules
ui_nested_tabs(id, modules, datasets, depth = 0L, is_module_specific = FALSE)
## Default S3 method:
ui_nested_tabs(id, modules, datasets, depth = 0L, is_module_specific = FALSE)
## S3 method for class 'teal_modules'
ui_nested_tabs(id, modules, datasets, depth = 0L, is_module_specific = FALSE)
## S3 method for class 'teal_module'
ui_nested_tabs(id, modules, datasets, depth = 0L, is_module_specific = FALSE)
srv_nested_tabs(
id,
datasets,
modules,
is_module_specific = FALSE,
reporter = teal.reporter::Reporter$new()
)
## Default S3 method:
srv_nested_tabs(
id,
datasets,
modules,
is_module_specific = FALSE,
reporter = teal.reporter::Reporter$new()
)
## S3 method for class 'teal_modules'
srv_nested_tabs(
id,
datasets,
modules,
is_module_specific = FALSE,
reporter = teal.reporter::Reporter$new()
)
## S3 method for class 'teal_module'
srv_nested_tabs(
id,
datasets,
modules,
is_module_specific = TRUE,
reporter = teal.reporter::Reporter$new()
)
id |
( |
modules |
( |
datasets |
(named |
depth |
( |
is_module_specific |
( |
reporter |
( |
Depending on the class of modules
, ui_nested_tabs
returns:
teal_module
: instantiated UI of the module.
teal_modules
: tabsetPanel
with each tab corresponding to recursively
calling this function on it.
srv_nested_tabs
returns a reactive which returns the active module that corresponds to the selected tab.
ui_nested_tabs
Each teal_modules
is translated to a tabsetPanel
and each
of its children is another tab-module called recursively. The UI of a
teal_module
is obtained by calling its UI function.
The datasets
argument is required to resolve the teal
arguments in an
isolated context (with respect to reactivity).
srv_nested_tabs
This module recursively calls all elements of modules
and returns currently active one.
teal_module
returns self as a active module.
teal_modules
also returns module active within self which is determined by the input$active_tab
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.