styleModal: Create a modal window

View source: R/utils_interface.R

styleModalR Documentation

Create a modal window

Description

Create a modal window

Usage

styleModal(
  session,
  title,
  ...,
  style = NULL,
  iconName = "exclamation-circle",
  footer = NULL,
  echo = FALSE,
  size = "medium",
  dismissButton = TRUE,
  caller = NULL
)

errorModal(session, title, ..., size = "small", footer = NULL, caller = NULL)

warningModal(session, title, ..., size = "small", footer = NULL, caller = NULL)

infoModal(session, title, ..., size = "small", footer = NULL, caller = NULL)

Arguments

session

Shiny session

title

Character: title

...

Arguments passed on to shiny::modalDialog

easyClose

If TRUE, the modal dialog can be dismissed by clicking outside the dialog box, or be pressing the Escape key. If FALSE (the default), the modal dialog can't be dismissed in those ways; instead it 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 (it will simply appear rather than fade in to view).

style

Character: style (NULL, warning, error or info)

iconName

Character: icon name

footer

HTML elements to use in footer

echo

Boolean: print to console?

size

Character: size of the modal (small, medium or large)

dismissButton

Boolean: show dismiss button in footer?

caller

Character: caller module identifier

Value

NULL (function is only used to modify the Shiny session's state or internal variables)

See Also

showAlert()


nuno-agostinho/psichomics documentation built on Feb. 11, 2024, 11:16 p.m.