File: shuffleButton.R

package info (click to toggle)
r-cran-bslib 0.9.0%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 12,412 kB
  • sloc: javascript: 13,349; makefile: 33; sh: 23
file content (20 lines) | stat: -rw-r--r-- 385 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
iconButton <- function(
  id,
  label,
  class = NULL,
  icon = "shuffle",
  icon_title = "Random",
  ...
) {
  tags$button(
    id = id,
    class = "btn btn-default action-button",
    class = class,
    bsicons::bs_icon("shuffle", title = "Random"),
    label
  )
}

shuffleButton <- function(id, label, class = NULL) {
  iconButton(id, label, class = c("shuffle-button", class))
}