inst/examples-shiny/build-a-box/R/shuffleButton.R
raw| 1 | iconButton <- function( |
| 2 | id, |
| 3 | label, |
| 4 | class = NULL, |
| 5 | icon = "shuffle", |
| 6 | icon_title = "Random", |
| 7 | ... |
| 8 | ) { |
| 9 | tags$button( |
| 10 | id = id, |
| 11 | class = "btn btn-default action-button", |
| 12 | class = class, |
| 13 | bsicons::bs_icon("shuffle", title = "Random"), |
| 14 | label |
| 15 | ) |
| 16 | } |
| 17 | |
| 18 | shuffleButton <- function(id, label, class = NULL) { |
| 19 | iconButton(id, label, class = c("shuffle-button", class)) |
| 20 | } |