# \donttest{
if (interactive()) {
library(shiny)
library(nextGenShinyApps)
shiny::shinyApp(
ui = fluidPage(
style = "8",
custom.bg.color = "white",
sidebar = NULL,
header = NULL,
shiny::h3("Modal EXAMPLES"),
shiny::div(actionButton("obianom1", "Show BIG shiny modal on the RIGHT")),
shiny::br(),
shiny::div(actionButton("obianom2", "Show SMALL shiny modal on the RIGHT"))
),
server = function(input, output) {
shiny::observeEvent(input$obianom1, {
shiny::showModal(modalDialog(
textInput("dataset", "Enter a data set"),
shiny::div("Id leo in vitae"),
size = "l",
position = "bottom",
))
})
shiny::observeEvent(input$obianom2, {
shiny::showModal(modalDialog(
textInput("dataset", "Enter a data set"),
shiny::div("Lorem donec massa"),
size = "l",
position = "right",
))
})
}
)
}
# }
Run the code above in your browser using DataLab