info_modal: Add Info Modal to UI

info_modalR Documentation

Add Info Modal to UI

Description

'info_ui()' adds an 'actionLink()' to the that brings up the modal in 'info_server()'.

Usage

cs_info_ui(
  id,
  label = NULL,
  icon = shiny::icon("info-circle"),
  container = tags$sup
)

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

Arguments

id

The input ID

label

The text to display with the info link, if any

icon

The icon to display on the info link

container

A container to wrap the 'actionLink', if any. Defaults to 'tags$sup()'.

...

UI elements for the body of the modal dialog box

title

An optional title for the dialog

footer

UI for the footer. Use 'NULL' for no footer.

size

One of '"s"' for small, '"m"' for medium, '"l"' for large, or '"xl"' for extra large

easyClose

Can the modal dialog be dismissed by clicking outside the dialog box? If 'FALSE', the modal dialog must be dismissed by clicking on a 'modalButton()' or from a call to 'removeModal()' on the server.

fade

If 'FALSE', the modal dialog will have no fade-in animation


jesse-smith/covidscreen documentation built on June 15, 2022, 7:46 p.m.