Skip to contents

Build a tabler alert

Usage

tablerAlert(..., title = NULL, status, icon = NULL, closable = TRUE)

Arguments

...

Alert content.

title

Alert title.

status

Alert status. See https://preview.tabler.io/docs/colors.html.

icon

Alert icon.

closable

Whether to close the alert. TRUE by default.

Author

David Granjon, dgranjon@ymail.com

Examples

if(interactive()){
 library(shiny)
 library(tablerDash)

 shiny::shinyApp(
   ui = tablerDashPage(
    navbar = NULL,
    footer = NULL,
    title = "test",
    body = tablerDashBody(
     tablerAlert(
      title = "Alert",
      "Lorem ipsum dolor sit amet, consectetur
      adipisicing elit. Lorem ipsum dolor sit
      amet, consectetur adipisicing elit.
      Lorem ipsum dolor sit amet, consectetur
      adipisicing elit.",
      icon = "alert-triangle",
      status = "info"
     )
    )
   ),
   server = function(input, output) {}
 )
}