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
actionButton(inputId, label, styleclass = "", size = "", block = F,
icon = NULL, icon.library = c("bootstrap", "font awesome"),
css.class = "", ...)eventsButton(..., events = c("dblclick"))
Specifies the input slot that will be used to access the value.
The contents of the button--usually a text label, but you could also use any other HTML, like an image.
The Bootstrap styling class of the button--options are primary, info, success, warning, danger, inverse, link or blank
The size of the button--options are large, small, mini
Whether the button should fill the block
Display an icon for the button
Specify an icon set to use http://www.fontawesome.io/icons or http://getbootstrap.com/2.3.2/base-css.html#icons
Any additional CSS class one wishes to add to the action button
Other argument to feed into shiny::actionButton
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
# NOT RUN {
# 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"))
# }
Run the code above in your browser using DataLab