R/bsAlert.R

Defines functions bsAlert

Documented in bsAlert

#'bsAlert
#'
#'\code{bsAlert} creates an anchor point in your UI definition. This anchor point
#'is where alerts created in your Server logic will be displayed.
#'
#'@param anchorId A unique id the identifies the anchor.
#'
#'@templateVar item_name bsAlert
#'@templateVar family_name Alerts
#'@template item_details
#'@template footer
#'@export
bsAlert <- function(anchorId) {
  
  bsTag <- shiny::tags$div(class = "sbs-alert", id = anchorId, " ")
  htmltools::attachDependencies(bsTag, shinyBSDep)
  
}

Try the shinyBS package in your browser

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

shinyBS documentation built on April 18, 2022, 1:06 a.m.