# NOT RUN {
library("htmltools")
library("shiny")
bs_modal(id = "modal", title = "I'm a modal", body = "Yes, I am.")
tags$button(type = "button", class = "btn btn-default", "Click for modal") %>%
bs_attach_modal(id_modal = "modal")
bs_modal(
id = "modal_large",
title = "I'm a modal",
size = "large",
body = includeMarkdown(system.file("markdown", "modal.md", package = "bsplus"))
)
tags$button(type = "button", class = "btn btn-default", "Click for modal") %>%
bs_attach_modal(id_modal = "modal_large")
# }
Run the code above in your browser using DataLab