module_teal_with_splash {teal} | R Documentation |
Add splash screen to teal
application
Description
Displays custom splash screen during initial delayed data loading.
Usage
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())
Arguments
id |
( |
data |
( |
title |
( |
header |
( |
footer |
( |
modules |
( |
filter |
( |
Details
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.
Value
Returns a reactive
expression containing a teal_data
object when data is loaded or NULL
when it is not.
See Also
Examples
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)
}