editor_proxy: Proxy for editor htmlwidget

View source: R/editor-proxy.R

editor_proxyR Documentation

Proxy for editor htmlwidget

Description

Proxy for editor htmlwidget

Usage

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

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.

Value

A editor_proxy object.

See Also

Other editor proxy methods: editor-proxy-show-hide, editor_proxy_change_preview(), editor_proxy_insert()

Examples

## Not run: 

# Consider having created a editor widget with
editorOutput("my_editor") # UI
output$my_editor <- renderEditor({}) # Server

# Then you can call proxy methods in observer:

# set editor proxy then call a cal_proxy_* function
editor_proxy("my_editor") %>%
  cal_proxy_today()

# or directly
cal_proxy_today("my_editor")


## End(Not run)

toastui documentation built on April 4, 2025, 1:57 a.m.