switchButton {bioCancer} | R Documentation

## A function to change the Original checkbox of rshiny into a nice true/false or on/off switch button No javascript involved. Only CSS code.

### Description

To be used with CSS script 'button.css' stored in a 'www' folder in your Shiny app folder

### Usage

    switchButton(inputId, label = NULL, value = FALSE, col = "GB",
      type = "TF")

### Arguments

`inputId` | The input slot that will be used to access the value.
`label` | Display label for the control, or NULL for no label.
`value` | Initial value (TRUE or FALSE).
`col` | Color set of the switch button. Choose between "GB" (Grey-Blue) and "RG" (Red-Green)
`type` | Text type of the button. Choose between "TF" (TRUE - FALSE), "OO" (ON - OFF) or leave empty for no text.

[Package bioCancer version 1.8.0 Index]