datagrid_proxy | R Documentation |
Proxy for datagrid htmlwidget
datagrid_proxy(shinyId, session = shiny::getDefaultReactiveDomain())
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. |
A datagrid_proxy
object.
Other datagrid proxy methods:
grid_proxy_add_row()
,
grid_proxy_delete_row()
## Not run:
# Consider having created a datagrid widget with
datagridOutput("my_grid") # UI
output$my_grid <- renderDatagrid({}) # Server
# Then you can call proxy methods in observer:
# set datagrid proxy then call a cal_proxy_* function
datagrid_proxy("my_grid") %>%
datagrid_proxy_addrow(mydata)
# or directly
datagrid_proxy_addrow("my_grid", mydata)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.