Skip to contents

Displays a shiny.fluent message bar on the top of the page

Usage

show_message_bar(
  output,
  message = character(),
  type = "severeWarning",
  i18n = character(),
  time = 7000,
  ns = character()
)

Arguments

output

Shiny output variable

message

Message that will be displayed, after translation (character)

type

Type of message bar displayed (reference to Microsoft MessageBarType num) (character)

i18n

Translator object from shiny.i18n library

time

Time the message bar will by displayed, in ms (integer)

ns

Shiny namespace

Details

The different possible types are : c("info", "error", "blocked", "severeWarning", "success", "warning")

Examples

if (FALSE) {
message_bar(output = output, message = "name_already_used", type = "severeWarning", i18n = i18n, time = 5000, ns = ns)
}