styleModal {psichomics} | R Documentation |
You can also use errorModal
and warningModal
to use a template
modal already stylised to show errors and warnings, respectively.
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)
session |
Current Shiny session |
title |
Character: modal title |
... |
Extra arguments to pass to |
style |
Character: style of the modal (NULL, "warning", "error" or "info"; NULL by default) |
iconName |
Character: FontAwesome icon name to appear with the title |
footer |
HTML elements to use in footer |
echo |
Boolean: print to console? FALSE by default |
size |
Character: size of the modal - "medium" (default), "small" or "large" |
dismissButton |
Boolean: show dismiss button in footer? TRUE by default |
caller |
Character: label to identify the module calling for the modal (relevant for error and warning modals) |
NULL (this function is used to modify the Shiny session's state)