R/directUpdate.r

Defines functions dsetUI

Documented in dsetUI

#' Directly setUI , also works for hidden UI
#' @export
dsetUI = function(id, ui, selector = paste0("#",id, collapse=", "), app=getApp(),...) {
  restore.point("dsetUI")
  
  html = as.character(ui)
  
  try(app$session$sendCustomMessage(type = 'shinyEventsSetInnerHTML',message = list(selector=selector, html=html)))
}
skranz/shinyEvents documentation built on Jan. 1, 2023, 9:25 a.m.