Description Usage Arguments Examples
This creates a default calendar input using Semantic UI. The input is available
under input[[input_id]]
.
This function updates the date on a calendar
1 2 3 4 5 6 7 8 9 10 |
input_id |
ID of the calendar that will be updated |
value |
Initial value of the numeric input. |
placeholder |
Text visible in the input when nothing is inputted. |
type |
Select from |
min |
Minimum allowed value. |
max |
Maximum allowed value. |
session |
The |
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 | # Basic calendar
if (interactive()) {
library(shiny)
library(shiny.semantic)
ui <- shinyUI(
semanticPage(
title = "Calendar example",
calendar("date"),
p("Selected date:"),
textOutput("selected_date")
)
)
server <- shinyServer(function(input, output, session) {
output$selected_date <- renderText(
as.character(input$date)
)
})
shinyApp(ui = ui, server = server)
}
## Not run:
# Calendar with max and min
calendar(
name = "date_finish",
placeholder = "Select End Date",
min = "2019-01-01",
max = "2020-01-01"
)
# Selecting month
calendar(
name = "month",
type = "month"
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.