Learn R Programming

shinyGovstyle (version 0.1.0)

button_Input: Button Function

Description

This function create a gov style button

Usage

button_Input(inputId, label, type = "default")

Value

a html button shiny object

Arguments

inputId

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

label

Display label for the control, or NULL for no label.

type

The type of button. Options are default, start, secondary and warning. Defaults to default.

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::button_Input(
        inputId = "btn1",
        label = "Continue",
        type = "default")
    ),
    shinyGovstyle::footer(full = TRUE)
  )

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

Run the code above in your browser using DataLab