Learn R Programming

shinysky (version 0.1.3)

actionButton: Buttons including Action Buttons and Event Buttons

Description

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

Usage

actionButton(inputId, label, styleclass = "", size = "", block = F,
  icon = NULL, icon.library = c("bootstrap", "font awesome"),
  css.class = "", ...)

eventsButton(..., events = c("dblclick"))

Arguments

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

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

See Also

Other ShinySky elements: select2Input, shinyalert, textInput.typeahead

Examples

Run this code
# 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