Skip to contents

A modified version of Shiny's modalDialog that adds a properly positioned close button in the header when easyClose is TRUE.

Usage

markermd_modal(
  ...,
  title = NULL,
  footer = shiny::modalButton("Dismiss"),
  size = c("m", "s", "l", "xl"),
  easyClose = FALSE,
  fade = TRUE
)

Arguments

...

UI elements to include within the modal

title

Character string. Modal title

UI elements for the modal footer (default: modalButton("Dismiss"))

size

Character. Modal size: "m", "s", "l", or "xl"

easyClose

Logical. If TRUE, adds close button to header and allows closing by clicking outside

fade

Logical. If TRUE, modal fades in/out

Value

Modal dialog HTML structure