iradioButtons: Create a radio button input with a label to the left of the...

Description Usage Arguments Author(s) Examples

Description

Create a radio button input with a label to the left of the input. With no label it becomes an 'inline' input suitable for embedding in a table.

Usage

1
2
3
iradioButtons(inputId, label, choices, selected = NULL, inline = FALSE,
  width = NULL, padding = "0.5em 1em 0.5em 0em", thin = FALSE,
  container = shiny::div)

Arguments

inputId

The DOM ID.

label

The label to display to the left of the input.

choices

Named or unnamed character vector of selectable choices.

selected

The initial value for the input.

inline

Place options inline (TRUE) or stacked (FALSE).

container

A named list of containers to apply. May length one or two, with names in c('outer', 'inner'); if length one the value will be applied to the outer container, and the inner will be a span by default. Should be either a block container 'div' or an inline container 'span'.

label.style

Inline css to apply to the left-of-input label.

input.style

Inline css to apply to the main input tag.

container.style

Inline css to apply to the outer container.

Author(s)

Jon Katz

Examples

1
iradioButtons(inputId='test', label='test label', value=1)

jonkatz2/shinyAddOns documentation built on May 19, 2019, 7:30 p.m.