module_teal_with_splash | R Documentation |
teal
applicationDisplays custom splash screen during initial delayed data loading.
ui_teal_with_splash(
id,
data,
title = build_app_title(),
header = tags$p(),
footer = tags$p()
)
srv_teal_with_splash(id, data, modules, filter = teal_slices())
id |
( |
data |
( |
title |
( |
header |
( |
footer |
( |
modules |
( |
filter |
( |
This module pauses app initialization pending delayed data loading. This is necessary because the filter panel and modules depend on the data to initialize.
teal_with_splash
follows the shiny
module convention.
init()
is a wrapper around this that assumes that teal
it is
the top-level module and cannot be embedded.
Note: It is no longer recommended to embed teal
in shiny
apps as a module.
but rather use init
to create a standalone application.
Returns a reactive
expression containing a teal_data
object when data is loaded or NULL
when it is not.
init()
teal_modules <- modules(example_module())
# Shiny app with modular integration of teal
ui <- fluidPage(
ui_teal_with_splash(id = "app1", data = teal_data())
)
server <- function(input, output, session) {
srv_teal_with_splash(
id = "app1",
data = teal_data(iris = iris),
modules = teal_modules
)
}
if (interactive()) {
shinyApp(ui, server)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.