What the browser holds, as R: the events last rendered with
render_el_calendar() or sent with update_el_calendar(), with every
event update_el_calendar() has since inserted, replaced or deleted. The
user's requests (input$<id>_add, ...) are not in it until the server
answers them. A reactive read.
Usage
el_calendar_events(session = shiny::getDefaultReactiveDomain(), id)Examples
if (interactive()) {
library(shiny)
ui <- el_page(el_calendar_output("plan"), verbatimTextOutput("n"))
server <- function(input, output, session) {
output$plan <- render_el_calendar(el_calendar(
events = data.frame(id = 1, date = Sys.Date(), title = "Review")
))
# the events the calendar shows, read back as R
output$n <- renderText(nrow(el_calendar_events(id = "plan")))
}
shinyApp(ui, server)
}