select.param

Description

Build a select AnalysisPageParam

Usage

1
2
select.param(..., value, choices, allow.multiple = FALSE,
  style = "dropdown")

Arguments

...

Passed through to simple.param. This includes at least "name", optionally "label" and "description" t not "type".

value

Default value. If not specified then the first entry in choices is taken to be the default.

choices

A character vector giving the choices to display. If named, then the values are used for display and names are used for the actual form values. If unnamed, then the values are used for both display and names.

allow.multiple

If TRUE then render as checkbox group and allow multiple selections. (The function will be provided a vector of all selected values.) If allow.multiple is TRUE then style must be "dropdown". Default: FALSE

style

Either "dropdown" (default), to render as dropdown list, or "radio", to render as radio group. If allow.multiple is TRUE then style must be "dropdown".

Details

Build a select AnalysisPageParam. This is probably rendered either as a dropdown or radio group. It is a selection from a fixed list of possible values. The list is known before page load time

Value

An AnalysisPageParam

Author(s)

Brad Friedman

Examples

1
  color <- select.param("color", label="Color", description="Color of your house", choices=c("red","green","mauve","tope"))

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.