add_landing_modal {teal} | R Documentation |
Add a Landing Popup to teal
Application
Description
Adds a landing popup to the teal
app. This popup will be shown when the app starts.
The dialog must be closed by the app user to proceed to the main application.
Usage
add_landing_modal(
x,
title = NULL,
content = NULL,
footer = modalButton("Accept"),
...
)
Arguments
x |
( |
title |
An optional title for the dialog. |
content |
( |
footer |
UI for footer. Use |
... |
Additional arguments to |
Examples in Shinylive
- example-1
Examples
app <- init(
data = teal_data(IRIS = iris, MTCARS = mtcars),
modules = modules(example_module())
) |>
add_landing_modal(
title = "Welcome",
content = "This is a landing popup.",
buttons = modalButton("Accept")
)
if (interactive()) {
shinyApp(app$ui, app$server)
}
[Package teal version 0.16.0 Index]