Skip to contents

function to generate radioGroupButtons from shinyWidgets with the custom ssz (label) styling

Usage

sszRadioGroupButtons(
  inputId,
  label = NULL,
  choices = NULL,
  selected = NULL,
  ...
)

Arguments

inputId

inputId parameter for radioGroupButtons

label

label parameter for radioGroupButtons, default NULL; leave NULL for button above chart (i.e. no label)

choices

choices parameter for radioGroupButtons, default NULL

selected

initially selected value, default NULL

...

further named parameters for shinyWidget::radioGroupButtons

Value

the return of radioGroupButtons with modified html classes

Details

classes ssz-radiogroup-1, ssz-radiogroup-2, and ssz-radiogroup-3 are added (starting from outermost div, moving down 1 step at a time); though currently these are not used for styling; only .btn-group-toggle>.btn-default and .btn-default.active are used for the styling

Examples

if (FALSE) { # \dontrun{
inst / examples / sszRadioGroupButtons / app.r
} # }