mod_bsmodal_ui | R Documentation |
Displays of formatted modal-dialog with 'Cancel' and 'Ok' buttons.
mod_bsmodal_ui(id) mod_bsmodal_server(id, title = NULL, width = NULL, uiContent = NULL)
id |
A 'character(1)' which is the id of the instance of the module |
title |
A 'character(1)' |
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. |
A Shiny modal-dialog
if(interactive()) { library(shiny) library(shinyBS) ui <- fluidPage( mod_bsmodal_ui('tbl') ) server <- function(input, output){ mod_bsmodal_server(id = 'tbl', title = 'test', uiContent = p('test')) } shinyApp(ui, server) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.