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)
}

Try the shinymaterial package in your browser

Any scripts or data that you put into this service are public.

shinymaterial documentation built on Sept. 1, 2020, 1:07 a.m.