Learn R Programming

shinyGovstyle (version 0.1.0)

insert_text: Insert Text Function

Description

This function loads the insert text component to display additional information in a special format.

Usage

insert_text(inputId, text)

Value

a insert text html shiny object

Arguments

inputId

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

text

Text that you want to display on the insert

Examples

Run this code
if (interactive()) {
  ui <- fluidPage(
    shinyGovstyle::header(
      main_text = "Example",
      secondary_text = "User Examples",
      logo="shinyGovstyle/images/moj_logo.png"),
    shinyGovstyle::gov_layout(size = "two-thirds",
      shinyGovstyle::insert_text(
        inputId = "note",
        text = "It can take up to 8 weeks to register a lasting power of
                attorney if there are no mistakes in the application."
      )
    ),
    shinyGovstyle::footer(full = TRUE)
  )

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

Run the code above in your browser using DataLab