golem icon indicating copy to clipboard operation
golem copied to clipboard

Use JS to resize cached plots

Open statnmap opened this issue 4 years ago • 1 comments

  • 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')}"))
})

statnmap avatar Jun 21 '21 19:06 statnmap

On hold for now

ColinFay avatar Jan 21 '22 09:01 ColinFay

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

ColinFay avatar Oct 14 '22 06:10 ColinFay