golem
golem copied to clipboard
Use JS to resize cached plots
- tosize allows to change style of a specific div
- resize resises the windows to allow shiny take into account new div sizes
Use for instance as follows:
observeEvent(input$graph_size, {
session$sendCustomMessage("tosize", list(id = glue::glue("{ns('plot')}"), size = input$graph_size))
session$sendCustomMessage("resize", glue::glue("resize {ns('plot')}"))
})
On hold for now
Thanks.
I don't think we'll be adding internal functions to golem JS, so I'm closing this for now.
See discussion in #503