bs4ListGroup: BS4 list group for AdminLTE3

Description Usage Arguments Author(s) Examples

View source: R/useful-items.R

Description

Create a list group

Usage

1

Arguments

...

Slot for bs4ListGroupItem.

width

List group width. 4 by default. Between 1 and 12.

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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
if(interactive()){
 library(shiny)
 library(bs4Dash)
 
 shiny::shinyApp(
   ui = bs4DashPage(
     navbar = bs4DashNavbar(),
     sidebar = bs4DashSidebar(),
     controlbar = bs4DashControlbar(),
     footer = bs4DashFooter(),
     title = "test",
     body = bs4DashBody(
      fluidRow(
       bs4ListGroup(
       bs4ListGroupItem(
        type = "basic",
        "Cras justo odio"
       ),
       bs4ListGroupItem(
        type = "basic",
        "Dapibus ac facilisis in"
       ),
       bs4ListGroupItem(
        type = "basic",
        "Morbi leo risus"
       )
      ),
      bs4ListGroup(
       bs4ListGroupItem(
        "Cras justo odio",
        active = TRUE, 
        disabled = FALSE, 
        type = "action",
        src = "http://www.google.fr"
       ),
       bs4ListGroupItem(
        active = FALSE, 
        disabled = FALSE, 
        type = "action",
        "Dapibus ac facilisis in",
        src = "http://www.google.fr"
       ),
       bs4ListGroupItem(
        "Morbi leo risus",
        active = FALSE, 
        disabled = TRUE, 
        type = "action",
        src = "http://www.google.fr"
       )
      ),
      bs4ListGroup(
       bs4ListGroupItem(
        "Donec id elit non mi porta gravida at eget metus. 
        Maecenas sed diam eget risus varius blandit.",
        active = TRUE, 
        disabled = FALSE, 
        type = "heading",
        title = "List group item heading", 
        subtitle = "3 days ago", 
        footer = "Donec id elit non mi porta."
       ),
       bs4ListGroupItem(
        "Donec id elit non mi porta gravida at eget metus. 
        Maecenas sed diam eget risus varius blandit.",
        active = FALSE, 
        disabled = FALSE, 
        type = "heading",
        title = "List group item heading", 
        subtitle = "3 days ago", 
        footer = "Donec id elit non mi porta."
       )
      )
     )
    )
   ),
   server = function(input, output) {}
 )
}

RX-PBB/bs4Mash documentation built on April 11, 2020, 12:15 a.m.