active: Selected choice color

Description Usage Arguments See Also Examples

View source: R/design.R

Description

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

Usage

1
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

 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")

yonder documentation built on Jan. 11, 2020, 9:35 a.m.