Unlimited learning, half price | 50% off

Last chance! 50% off unlimited learning

Sale ends in


toastui (version 0.4.0)

calendar_proxy: Proxy for calendar htmlwidget

Description

Proxy for calendar htmlwidget

Usage

calendar_proxy(shinyId, session = shiny::getDefaultReactiveDomain())

Value

A calendar_proxy object.

Arguments

shinyId

single-element character vector indicating the output ID of the chart to modify (if invoked from a Shiny module, the namespace will be added automatically).

session

the Shiny session object to which the chart belongs; usually the default value will suffice.

See Also

Other calendar proxy methods: cal_proxy_clear(), cal_proxy_clear_selection(), cal_proxy_options(), cal_proxy_toggle(), cal_proxy_view(), calendar-proxy-navigate, calendar-proxy-schedule

Examples

Run this code
if (FALSE) {

# Consider having created a calendar widget with
calendarOutput("my_calendar") # UI
output$my_calendar <- renderCalendar({}) # Server

# Then you can call proxy methods in observer:

# set calendar proxy then call a cal_proxy_* function
calendar_proxy("my_calendar") %>%
  cal_proxy_today()

# or directly
cal_proxy_today("my_calendar")

}

Run the code above in your browser using DataLab