UIkitGrid: Create an UIkit grid

Description Usage Arguments Note Author(s) Examples

View source: R/UIkitGrid.R

Description

Create a fully responsive, fluid and nestable grid layout

Usage

1
UIkitGrid(..., gutter = NULL, divider = FALSE, child_width = NULL)

Arguments

...

Slot for an UIkitGridElement.

gutter

Grid gutter (space bewteen elements): "small", "medium", "large" or "collapse".

divider

Whether to separate grid elements with a vertical divider. FALSE by default.

child_width

Set an automatic width for all UIkitGridElement. From "1-2" to "1-6" as well as "auto" and "expand"

Note

Do not forget to wrap UI element in a UIkitGridElement before putting them in a grid layout (see example)!

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
if(interactive()){
library(shiny)

shiny::shinyApp(
 ui = UIkitPage(
   title = "My UIkit application",
   UIkitGrid(
    child_width = "expand",
    gutter = "small",
    UIkitGridElement(
     UIkitCard(
      width = NULL,
      title = "My card",
      badge = "test",
      hover = TRUE,
      horizontal = FALSE,
      UIkitCardMedia(
        src = "https://getuikit.com/docs/images/light.jpg",
        horizontal = TRUE, 
        position = "left"
      ),
      body = "This is the body"
     )
    ),
    UIkitGridElement(
     UIkitCard(
      width = NULL,
      title = "My card",
      badge = "test",
      hover = TRUE,
      horizontal = FALSE,
      UIkitCardMedia(
        src = "https://getuikit.com/docs/images/light.jpg",
        horizontal = TRUE, 
        position = "left"
      ),
      body = "This is the body"
     )
    ),
    UIkitGridElement(
     UIkitCard(
      width = NULL,
      title = "My card",
      badge = "test",
      hover = TRUE,
      horizontal = FALSE,
      UIkitCardMedia(
        src = "https://getuikit.com/docs/images/light.jpg",
        horizontal = TRUE, 
        position = "left"
      ),
      body = "This is the body"
     )
    )
   )
 ),
 server = function(input, output) {}
 )
}

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