Update Calcite Component Properties
update_calcite.Rd
Updates the properties of the javascript Calcite component.
Usage
update_calcite(id, ..., session = shiny::getDefaultReactiveDomain())
Arguments
- id
the html ID of the element to update. Must be a character scalar.
- ...
named properties to be updated in the component. The names must match the property name. Otherwise, will fail silently.
- session
a shiny session object. Default
shiny::getDefaultReactiveDomain()
.
Examples
if (FALSE) { # \dontrun{
# this cannot work outside of shiny
if (interactive()) {
# defined in the ui
calcite_action(id = "action", icon = "Basemap", text = "Basemaps")
# ran in the server function
update_calcite("action", active = FALSE)
}
} # }