Displays of formatted modal-dialog with 'Cancel' and 'Ok' buttons. This modal (a shiny module itself) can embed a shiny module and it is able to return the return value of the embeded shiny module.
Arguments
- id
A `character(1)` which is the id of the instance of the module
- title
A `character(1)`
- typeWidget
The type of command widget to show to open the modal. Available values are 'button' (default) and 'link'.
- width
A `character(1)` indicating the size of the modal window. Can be "s" for small (the default), "m" for medium, or "l" for large.
- uiContent
The content of the modal dialog. By default, its value is NULL which means that the user wants to embed a shiny module. In this case, the module rather take into account the two next parameters.
- external_mod
The name of a shiny module which is already loaded in the R session. This name corresponds to the name of the functions `_ui` and `_server` without these suffixes. For example, if the user wants to add a module defined by the functions `myModule_ui()` and `myModule_server()`, then the parameter 'external_mod' should be set to 'myModule'.
- external_mod_args
A `list()` which contains the parameters sent to the function `myModule_server()`.
Examples
if (interactive()) {
mod_modalDialog(
title = "test modalDialog",
uiContent = p("test")
)
}