input_toggle_pct: Radio buttons to toggle between number and percentage.

Description Usage Arguments Examples

View source: R/input-toggle-pct.R

Description

Radio buttons to toggle between number and percentage.

Usage

1
input_toggle_pct(inputId, label = "as", size = "sm", ...)

Arguments

inputId

the input slot that will be used to access the value.

label

label to display alongside the buttons

size

size of the radio buttons ('sm', 'xs', or 'lg')

...

additional parameters to pass to radioGroupButtons

Examples

1
2
3
4
5
## Not run: 
  input_toggle_pct('show_pct') %>%
    shinybones::preview_component()

## End(Not run)

ramnathv/shinymetrics documentation built on June 29, 2020, 10:39 p.m.