tablerAlert: Create a Boostrap 4 alert

Description Usage Arguments Author(s) Examples

Description

Build a tabler alert

Usage

1
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(s)

David Granjon, dgranjon@ymail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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) {}
 )
}

tablerDash documentation built on May 2, 2019, 9:58 a.m.