| updateButton | R Documentation |
updateButton is used in your Server logic to update the style or state
of a button.
updateButton(session, inputId, label = NULL, icon = NULL, value = NULL, style = NULL, size = NULL, block = NULL, disabled = NULL)
session |
The session object passed to function given to shinyServer. |
inputId |
Specifies the input slot that will be used to access the value. |
label |
The contents of the button or linkâusually a text label, but you could also use any other HTML, like an image. |
icon |
An optional |
value |
logical If |
style |
A Bootstrap style to apply to the button. ( |
size |
The size of the button ( |
block |
logical Should the button take the full width of the parent element? |
disabled |
logical Should the button be disabled (un-clickable)? |
Because of the way it is coded, updateButton may work on buttons not
created by bsButton such as submitButton.
See Buttons for more information about how to use updateButton with the rest of the Buttons family.
Run bsExample("Buttons") for an example
of updateButton functionality.
Other Buttons: Buttons;
bsButton
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.