switchButton | R Documentation |
To be used with CSS script 'button.css' stored in a 'www' folder in your Shiny app folder
switchButton(inputId, label = NULL, value = FALSE, col = "GB", type = "TF")
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.