Learn R Programming

AnalysisPageServer (version 1.6.2)

select.param: select.param

Description

Build a select AnalysisPageParam

Usage

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".

Value

An AnalysisPageParam

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

Examples

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

Run the code above in your browser using DataLab