bulmaDateInput: Date picker

Description Usage Arguments Note Author(s) Examples

View source: R/bulma-input.R

Description

Add date picker.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
bulmaDateInput(
  inputId,
  value,
  min = Sys.Date() - 3,
  max = Sys.Date(),
  overlay = FALSE,
  lang = "en",
  class = NULL,
  ...
)

Arguments

inputId

Id to access value.

value

Current date.

min, max

Minimum and maximum selectable dates.

overlay

Set to TRUE to heave the calendar appear as overlay.

lang

Language.

class

Additional CSS class.

...

any other option

Note

Does not work in RStudio, open app in browser.

Author(s)

John Coene, jcoenep@gmail.com

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
if(interactive()){
  ui <- bulmaPage(
    bulmaContainer(
      br(),
      bulmaDateInput("date", Sys.Date(), overlay = TRUE),
      verbatimTextOutput("selected")
    )
  )
  
  server <- function(input, output){
    
    output$selected <- renderText({
      input$date
    })
  }
  
  shiny::shinyApp(ui, server)
}

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