cal_proxy_clear {toastui} | R Documentation |
Clear calendar with Proxy
Description
This function allow to delete all schedules and clear view.
Usage
cal_proxy_clear(proxy)
Arguments
proxy |
A |
Value
A calendar_proxy
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)
[Package toastui version 0.3.3 Index]