noti_banner | R Documentation |
This function create a notification banner
noti_banner( inputId, title_txt = "Important", body_txt = NULL, type = "standard" )
inputId |
The input id for the banner |
title_txt |
The wording that appears in the title |
body_txt |
The wording that appears in the banner body |
type |
The type of banner. Options are standard and success. Standard is default |
a notification html shiny object
if (interactive()) { ui <- fluidPage( shinyGovstyle::header( main_text = "Example", secondary_text = "User Examples", logo="shinyGovstyle/images/moj_logo.png"), shinyGovstyle::noti_banner( inputId = "banner", title_txt = "Important", body_txt = "Example text") ) server <- function(input, output, session) {} shinyApp(ui = ui, server = server) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.