Description Usage Arguments Value See Also Examples
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.
1 | submitButton(text = "Apply Changes", icon = NULL)
|
text |
Button caption |
icon |
Optional |
A submit button that can be added to a UI definition.
Other input.elements: animationOptions
,
sliderInput
;
checkboxGroupInput
;
checkboxInput
; dateInput
;
dateRangeInput
; numericInput
;
radioButtons
; selectInput
,
selectizeInput
; textInput
1 2 3 | library(shiny)
submitButton("Update View")
submitButton("Update View", icon("refresh"))
|
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: ‘shiny’
The following objects are masked from ‘package: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>
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.