bulmaSidebar: bulma right sidebar

Description Usage Arguments Note Author(s) Examples

View source: R/bulma-sidebar.R

Description

Create a rigth sidebar https://wikiki.github.io/components/quickview/.

Usage

1
bulmaSidebar(..., header_title = NULL, footer_content = NULL)

Arguments

...

Any element to include in the sidebar (such as input elements, ...)

header_title

Sidebar header.

footer_content

Footer content.

Note

Not compatible with mobile display.

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
if (interactive()) {
 library(shiny)
 
 ui <- bulmaPage(
   bulmaContainer(
   bulmaTitle("Right sidebar demo"),  
   bulmaSidebarTrigger()
   ),
   bulmaSidebar(
     header_title = "test",
     
     bulmaSubtitle("Input elements"),
     
     bulmaSliderInput("slider", color = "warning", 10, 3, 150),
     
     bulmaSwitchInput(
       inputId = "switch3", 
       label = "switch 3", 
       value = TRUE,
       
       color = "danger", 
       size = "small", 
       style = "thin",
       
       rtl = FALSE, 
       disabled = FALSE),
     
     bulmaSubtitle("Other Stuff")
     
   ),
   
   plotOutput("plot")
     )
 
 server <- function(input, output, session) {
   data <- reactive({
     rnorm(input$slider, 20, 4)
   })
   
   output$plot <- renderPlot({
     hist(data())
   })
 }
 
 shinyApp(ui = ui, server = server)
}

JohnCoene/shinybulma documentation built on Oct. 17, 2020, 8:57 p.m.