Learn R Programming

yonder (version 0.2.0)

active: Selected choice color

Description

Use active() to change the highlight color of an input's selected choices.

Usage

active(tag, color)

Arguments

tag

A tag element.

color

One of "red", "purple", "indigo", "blue", "cyan", "teal", "green", "yellow", "amber", "orange", "grey", "white" specifying the active color of selected choices.

See Also

Other design utilities: affix(), background(), border(), display(), float(), font(), height(), padding(), scroll(), shadow(), width()

Examples

Run this code
# NOT RUN {
### 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")

# }

Run the code above in your browser using DataLab