Learn R Programming

shinyMobile (version 0.1.0)

f7DatePicker: Create a Framework7 date input

Description

Create a Framework7 date input

Usage

f7DatePicker(
  inputId,
  label,
  value = NULL,
  min = NULL,
  max = NULL,
  format = "yyyy-mm-dd"
)

Arguments

inputId

Date input id.

label

Input label.

value

Start value.

min

Minimum date.

max

Maximum date.

format

Date format: "yyyy-mm-dd", for instance.

Examples

Run this code
# NOT RUN {
if (interactive()) {
 library(shiny)
 library(shinyMobile)
 shinyApp(
   ui = f7Page(
     preloader = FALSE,
     color = "pink",
     title = "My app",
     f7SingleLayout(
       navbar = f7Navbar(title = "f7DatePicker"),
       f7DatePicker(
         inputId = "date",
         label = "Choose a date",
         value = "2019-08-24"
       ),
       "The selected date is",
       textOutput("selectDate")
     )
   ),
   server = function(input, output, session) {
     output$selectDate <- renderText(input$date)
   }
 )
}
# }

Run the code above in your browser using DataLab