mod_bsmodal: Predefined modal

mod_bsmodal_uiR Documentation

Predefined modal

Description

Displays of formatted modal-dialog with 'Cancel' and 'Ok' buttons.

Usage

mod_bsmodal_ui(id)

mod_bsmodal_server(id, title = NULL, width = NULL, uiContent = NULL)

Arguments

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.

Value

A Shiny modal-dialog

Examples

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)
}


samWieczorek/Magellan documentation built on March 30, 2022, 3:40 a.m.