mixedOptionsInput: Define an input field with both radio-buttons and...

Description Usage Arguments See Also

View source: R/input.R

Description

mixedOptionsInput creates a set of radio-buttons and check-boxes. Check-boxes can be used to toggle multiple choices indepdenently, while radio-buttons can be used to define additional, mutually exclusive options.

Usage

1
2
mixedOptionsInput(inputId, label, choices, types, selected = NULL,
  inline = FALSE, width = NULL)

Arguments

inputId

(character) the input slot that will be used to access the value.

label

(character) display label for the control, or NULL for no label.

choices

(list) list of values to show radio-buttons and check-boxes for; if elements of the list are named then that name, rather than the value, will be displayed to the user.

types

(character) the types of responses; use 'radio' for radio-buttons (single-choice / mutually exclusive responses) and 'checkbox' for check-boxes (multiple-choice responses). You can also use mixedOptions.single and mixedOptions.multiple respectively. The length of this vector must be the same as the number of entries defined in choices.

selected

(vector) the values that should be initially selected, if any.

inline

(logical) if TRUE, render the choices inline (i.e. horizontally).

width

(character) the width of the input, e.g. '400px' or '100%'; see validateCssUnit.

See Also

question.mixed, checkboxGroupInput, radioButtons.


mtrybulec/interviewer documentation built on May 23, 2019, 8:20 a.m.