module_teal | R Documentation |
teal
main app moduleThis is the main teal
app that puts everything together.
ui_teal(
id,
splash_ui = tags$h2("Starting the Teal App"),
title = build_app_title(),
header = tags$p(),
footer = tags$p()
)
srv_teal(id, modules, teal_data_rv, filter = teal_slices())
id |
( |
splash_ui |
( |
title |
( |
header |
( |
footer |
( |
modules |
( |
teal_data_rv |
( |
filter |
( |
It displays the splash UI which is used to fetch the data, possibly
prompting for a password input to fetch the data. Once the data is ready,
the splash screen is replaced by the actual teal
UI that is tabsetted and
has a filter panel with datanames
that are relevant for the current tab.
Nested tabs are possible, but we limit it to two nesting levels for reasons
of clarity of the UI.
The splash screen functionality can also be used
for non-delayed data which takes time to load into memory, avoiding
shiny
session timeouts.
Server evaluates the teal_data_rv
(delayed data mechanism) and creates the
datasets
object that is shared across modules.
Once it is ready and non-NULL
, the splash screen is replaced by the
main teal
UI that depends on the data.
The currently active tab is tracked and the right filter panel
updates the displayed datasets to filter for according to the active datanames
of the tab.
It is written as a shiny
module so it can be added into other apps as well.
Returns a reactive
expression which returns the currently active module.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.