styleModal {psichomics} | R Documentation

## Style and show a modal

### Description

You can also use `errorModal` and `warningModal` to use a template modal already stylised to show errors and warnings, respectively.

### 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` | Current Shiny session
`title` | Character: modal title
`...` | Extra arguments to pass to `shiny::modalDialog`
`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)

### Value

NULL (this function is used to modify the Shiny session's state)

### See Also

`showAlert`

[Package psichomics version 1.6.2 Index]