keller-mark / anyhtmlwidget

Bringing core concepts from anywidget to R
https://keller-mark.github.io/anyhtmlwidget/
Other
5 stars 0 forks source link

Support model.set via Shiny.setInputValue #1

Closed keller-mark closed 1 month ago

keller-mark commented 2 months ago
if(window && window.Shiny && window.Shiny.setInputValue) {
  Shiny.setInputValue("vitessce_on_config_change", newConfig);
}

See

https://github.com/vitessce/vitessceR/blob/3177e1771925efbb34f243775845128c7217c431/inst/htmlwidgets/vitessceR.js#L50

and

https://github.com/vitessce/vitessceR/blob/3177e1771925efbb34f243775845128c7217c431/vignettes/shiny.Rmd#L137