Description Usage Arguments See Also Examples
Use active()
to change the highlight color of an input's selected choices.
1 | active(tag, color)
|
tag |
A tag element. |
color |
One of |
Other design utilities:
affix()
,
background()
,
border()
,
display()
,
float()
,
font()
,
height()
,
padding()
,
scroll()
,
shadow()
,
width()
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ### Radiobar example
radiobarInput(
id = "radio1",
choices = c("Hello", "Goodnight", "Howdy")
) %>%
width(16) %>%
active("orange") # <-
### Checkbox example
checkboxInput(
id = "check1",
choices = c("Rock", "Paper", "Scissors"),
selected = "Rock"
) %>%
active("teal")
### Chip input
chipInput(
id = "chip1",
choices = c("Ether", "Bombos", "Quake"),
selected = "Ether"
) %>%
width("1/2") %>%
active("green")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.