submitButton: Create a submit button

Description Usage Arguments Value See Also Examples

View source: R/input-submit.R

Description

Create a submit button for an input form. Forms that include a submit button do not automatically update their outputs when inputs change, rather they wait until the user explicitly clicks the submit button.

Usage

1
submitButton(text = "Apply Changes", icon = NULL)

Arguments

text

Button caption

icon

Optional icon to appear on the button

Value

A submit button that can be added to a UI definition.

See Also

Other input.elements: animationOptions, sliderInput; checkboxGroupInput; checkboxInput; dateInput; dateRangeInput; numericInput; radioButtons; selectInput, selectizeInput; textInput

Examples

1
2
3
library(shiny)
submitButton("Update View")
submitButton("Update View", icon("refresh"))

Example output

You probably do not want to attach this package (with library() or require()). Instead, you should use shinybootstrap2::withBootstrap2(). You can hide this message with suppressPackageStartupMessages().

Attaching package:shinyThe following objects are masked frompackage:shinybootstrap2:

    animationOptions, basicPage, bootstrapPage, checkboxGroupInput,
    checkboxInput, column, dataTableOutput, dateInput, dateRangeInput,
    fixedPage, fixedRow, fluidPage, fluidRow, headerPanel, icon,
    mainPanel, navbarPage, navlistPanel, numericInput, pageWithSidebar,
    radioButtons, selectInput, selectizeInput, sidebarLayout,
    sidebarPanel, sliderInput, submitButton, textInput, titlePanel,
    updateCheckboxGroupInput, updateRadioButtons, updateSliderInput,
    verticalLayout

<div>
  <button type="submit" class="btn btn-primary">Update View</button>
</div>
<div>
  <button type="submit" class="btn btn-primary">
    <i class="fa fa-refresh"></i>
    Update View
  </button>
</div>

shinybootstrap2 documentation built on May 2, 2019, 4:05 p.m.