Learn R Programming

shinyGovstyle (version 0.1.0)

banner: Banner Function

Description

This function create a detail component that you can click for further details.

Usage

banner(inputId, type, label)

Value

a banner html shiny object

Arguments

inputId

The input slot that will be used to access the value.

type

Main type of label e.g. alpha or beta. Can be any word.

label

test to display.

Examples

Run this code
if (interactive()) {

  ui <- fluidPage(
    shinyGovstyle::header(
      main_text = "Example",
      secondary_text = "User Examples",
      logo="shinyGovstyle/images/moj_logo.png"),
    shinyGovstyle::banner(
      inputId = "banner", type = "Beta", 'This is a new service')
  )

  server <- function(input, output, session) {}

  shinyApp(ui = ui, server = server)
}

Run the code above in your browser using DataLab