datetimeMaterialPickerInput {shinyDatetimePickers} | R Documentation |
Material design datetime picker
Description
A datetime picker for a Shiny UI.
Usage
datetimeMaterialPickerInput(
inputId,
label = NULL,
value = NULL,
disablePast = FALSE,
disableFuture = FALSE,
style = NULL
)
Arguments
inputId |
the input slot that will be used to access the value |
label |
a label, a character string (HTML is not allowed), or
|
value |
initial value, either a |
disablePast |
logical, whether to disable past dates |
disableFuture |
logical, whether to disable future dates |
style |
inline CSS for the container |
Value
A shiny.tag
object that can be included in a Shiny UI.
Examples
if(interactive()){
library(shinyDatetimePickers)
library(shiny)
ui <- fluidPage(
br(),
sidebarLayout(
sidebarPanel(
datetimeMaterialPickerInput(
"dtmpicker",
label = "Appointment",
disablePast = TRUE
)
),
mainPanel(
verbatimTextOutput("dtmpicker")
)
)
)
server <- function(input, output){
output[["dtmpicker"]] <- renderPrint({
input[["dtmpicker"]]
})
}
shinyApp(ui, server)
}
[Package shinyDatetimePickers version 1.2.0 Index]