UIkitSection: Create an UIkit section

Description Usage Arguments Author(s) Examples

View source: R/UIkitSection.R

Description

Create horizontal layout sections with different background colors and styles

Usage

1
2
UIkitSection(..., title = NULL, style = NULL, preserve = TRUE,
  size = NULL)

Arguments

...

Slot for UIkitSectionItem.

title

Section title.

style

Section style: "default", "muted", "primary", "secondary".

preserve

Whether to preserve the color of UI elements inside the section. TRUE by default.

size

Section size: "xsmall", "small", "large", "xlarge" or NULL (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
if(interactive()){
 library(shiny)
 shiny::shinyApp(
   ui = UIkitPage(
     title = "My UIkit application",
     UIkitSection(
      size = "small",
      title = "Section Primary with cards",
      style = "primary",
      UIkitGrid(
       child_width = "expand",
       UIkitSectionItem(
        UIkitCard(
         width = NULL,
         height = "medium",
         title = "My card",
         hover = TRUE,
         horizontal = FALSE,
         header = "This is the header",
         body = "This is the body",
         footer = "This is the footer"
        )
       ),
       UIkitSectionItem(
        UIkitCard(
          width = NULL,
          height = "medium",
          title = "My card",
          hover = TRUE,
          horizontal = FALSE,
          header = "This is the header",
          body = "This is the body",
          footer = "This is the footer"
        )
       )
      )
     )
   ),
   server = function(input, output) {}
 )
}

DivadNojnarg/shinyUIkit documentation built on July 24, 2019, 8:17 a.m.