This function allow to delete all schedules and clear view.
Arguments
- proxy
A
calendar_proxy()
htmlwidget
object.
See also
Other calendar proxy methods:
cal_proxy_clear_selection()
,
cal_proxy_options()
,
cal_proxy_toggle()
,
cal_proxy_view()
,
calendar-proxy-navigate
,
calendar-proxy-schedule
,
calendar_proxy()
Examples
library(shiny)
library(toastui)
ui <- fluidPage(
tags$h2("Clear all schedules"),
actionButton("clear", "Clear all", class = "btn-block btn-danger"),
calendarOutput("my_calendar")
)
server <- function(input, output, session) {
output$my_calendar <- renderCalendar({
calendar(cal_demo_data(), navigation = FALSE)
})
observeEvent(input$clear, cal_proxy_clear("my_calendar"))
}
if (interactive())
shinyApp(ui, server)