teal_modifiers {teal} | R Documentation |
Replace UI Elements in teal
UI objects
Description
Replace UI Elements in teal
UI objects
Usage
modify_title(x, title = "teal app", favicon = NULL)
modify_header(x, element = tags$p())
modify_footer(x, element = tags$p())
Arguments
x |
( |
title |
( |
favicon |
( |
element |
Replacement UI element (shiny tag or HTML) |
Examples in Shinylive
- example-1
- example-2
- example-3
Examples
app <- init(
data = teal_data(IRIS = iris, MTCARS = mtcars),
modules = modules(example_module())
) |>
modify_title(title = "Custom title")
if (interactive()) {
shinyApp(app$ui, app$server)
}
app <- init(
data = teal_data(IRIS = iris),
modules = modules(example_module())
) |>
modify_header(element = tags$div(h3("Custom header")))
if (interactive()) {
shinyApp(app$ui, app$server)
}
app <- init(
data = teal_data(IRIS = iris),
modules = modules(example_module())
) |>
modify_footer(element = "Custom footer")
if (interactive()) {
shinyApp(app$ui, app$server)
}
[Package teal version 0.16.0 Index]