R/trigger-deps.R

Defines functions trigger_deps

trigger_deps <- function(session){
  
  .id <- create_id()
  
  shiny::showNotification(id = .id,
                          ui = '', 
                          duration = NULL,
                          closeButton = FALSE)
  
  js_code <- paste0(
    "$('#shiny-notification-", .id, "').hide();"
  )
  
  session$sendCustomMessage(
    type = "shinymaterialJS",
    js_code
  )
  
  shiny::removeNotification(id = .id)
}
ericrayanderson/shinymaterial documentation built on Oct. 9, 2020, 5:21 p.m.