Description Usage Arguments See Also Examples
View source: R/action-button.R
Creates an action button whose value is initially zero, and increments by one each time it is pressed.
A button that responds to events click, doubleclick, hover etc. It's built on top of actionButton and eventInput
1 2 3 4 5 | actionButton(inputId, label, styleclass = "", size = "", block = F,
icon = NULL, icon.library = c("bootstrap", "font awesome"),
css.class = "", ...)
eventsButton(..., events = c("dblclick"))
|
inputId |
Specifies the input slot that will be used to access the value. |
label |
The contents of the button–usually a text label, but you could also use any other HTML, like an image. |
styleclass |
The Bootstrap styling class of the button–options are primary, info, success, warning, danger, inverse, link or blank |
size |
The size of the button–options are large, small, mini |
block |
Whether the button should fill the block |
icon |
Display an icon for the button |
icon.library |
Specify an icon set to use http://www.fontawesome.io/icons or http://getbootstrap.com/2.3.2/base-css.html#icons |
css.class |
Any additional CSS class one wishes to add to the action button |
... |
Other argument to feed into shiny::actionButton |
events |
A sequence of events that will invalidate the button http://getbootstrap.com/2.3.2/base-css.html#icons |
Other ShinySky elements: select2Input
,
shinyalert
,
textInput.typeahead
1 2 3 4 5 6 7 8 9 10 11 | # use it in place of shiny::actionButton
# the possible sytles are "primary", "info", "success", "warning", "danger", "inverse", "link", ""
yourStyle = "info"
actionButton("inputId", "label", styleclass = yourStyle)
# simply use this in place of a actionButtion
# change the event to "hover" "mousedown" etc
# see full list https://api.jquery.com/category/events/mouse-events/
eventsButton("inputId", "label", events = c("dblclick"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.