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)
The session object passed to function given to shinyServer.
Specifies the input slot that will be used to access the value.
The contents of the button or link--usually a text label, but you could also use any other HTML, like an image.
An optional icon
to appear on the button.
logical If type = "toggle"
, the initial value of the button.
A Bootstrap style to apply to the button. (default
, primary
,
success
, info
, warning
, or danger
)
The size of the button (extra-small
, small
,
default
, or large
)
logical Should the button take the full width of the parent element?
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.