View source: R/teal_modifiers.R
add_landing_modal | R Documentation |
teal
ApplicationAdds 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.
add_landing_modal(
x,
title = NULL,
content = NULL,
footer = modalButton("Accept"),
...
)
x |
( |
title |
An optional title for the dialog. |
content |
( |
footer |
UI for footer. Use |
... |
Additional arguments to |
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.