diff --git a/main/404.html b/main/404.html index 920af6a50a..b690be052c 100644 --- a/main/404.html +++ b/main/404.html @@ -25,7 +25,7 @@ teal - 0.14.0.9014 + 0.14.0.9015
module
data
Report previewer
teal_slices
?snapshot
init
landing_popup_module
teal_module
children
teal_modules
R/modules.R
append_module.Rd
Function which appends a teal_module onto the children of a teal_modules object
Append a teal_module to children of a teal_modules object
TealReportCard
landing_popup_module()
R/landing_popup_module.R
landing_popup_module.Rd
Creates a landing welcome popup for teal applications.
teal
This module is used to display a popup dialog when the application starts. +The dialog blocks the access to the application and must be closed with a button before the application is viewed.
landing_popup_module( + label = "Landing Popup", + title = NULL, + content = NULL, + buttons = modalButton("Accept") +)
character(1) the label of the module.
character(1)
character(1) the text to be displayed as a title of the popup.
The content of the popup. Passed to ... of shiny::modalDialog. Can be a character +or a list of shiny.tags. See examples.
...
shiny::modalDialog
character
shiny.tag
shiny.tag or a list of tags (tagList). Typically a modalButton or actionButton. See examples.
tagList
modalButton
actionButton
A teal_module (extended with teal_landing_module class) to be used in teal applications.
teal_landing_module
app1 <- teal::init( + data = teal.data::dataset("iris", iris), + modules = teal::modules( + teal::landing_popup_module( + content = "A place for the welcome message or a disclaimer statement.", + buttons = modalButton("Proceed") + ), + example_module() + ) +) +#> [INFO] 2023-10-25 14:27:28.9447 pid:889 token:[] teal Initializing landing_popup_module +#> module "Landing Popup" server function takes no data so "datanames" will be ignored +if (interactive()) { + shinyApp(app1$ui, app1$server) +} + +app2 <- teal::init( + data = teal.data::dataset("iris", iris), + modules = teal::modules( + teal::landing_popup_module( + title = "Welcome", + content = tags$b( + "A place for the welcome message or a disclaimer statement.", + style = "color: red;" + ), + buttons = tagList( + modalButton("Proceed"), + actionButton("read", "Read more", + onclick = "window.open('http://google.com', '_blank')" + ), + actionButton("close", "Reject", onclick = "window.close()") + ) + ), + example_module() + ) +) +#> [INFO] 2023-10-25 14:27:29.0210 pid:889 token:[] teal Initializing landing_popup_module +#> module "Landing Popup" server function takes no data so "datanames" will be ignored + +if (interactive()) { + shinyApp(app2$ui, app2$server) +} + +
module_management.Rd
Given a teal_module or a teal_modules, return the elements of the structure according to class.
class
extract_module(modules, class) + +drop_module(modules, class)
The class name of teal_module to be extracted or dropped.
For extract_module, a teal_module of class class or teal_modules containing modules of class class. +For drop_module, the opposite, which is all teal_modules of class other than class.
extract_module
drop_module
If you are creating a teal application using init() then this module will be added to your application automatically if any of your teal modules -support report generation
init()
teal modules
teal_module containing the teal.reporter previewer functionality
teal.reporter
teal_module (extended with teal_module_previewer class) containing the teal.reporter previewer +functionality.
teal_module_previewer