Learn R Programming

AnalysisPageServer (version 1.6.2)

bool.param: bool.param

Description

Build a boolean AnalysisPageParam

Usage

bool.param(...)

Arguments

...
Passed through to simple.param. This includes at least "name", and optionally "label", "description" and "value" (which should be either TRUE or FALSE), but not "type".

Value

An AnalysisPageParam

Details

Build a boolean AnalysisPageParam. This is probably rendered as a checkbox. The value returned to the server should be either JSON "true" (corresponding to checked) or JSON "false".

If you do not provide a value (or if you provide value="", which is what happens in the parent constructor simple.param when you don't provide a value) then the default will be FALSE.

Examples

Run this code
show.ids <- bool.param("show_ids", label="Show IDs", description="Show sample IDs on the plot", value=TRUE)

Run the code above in your browser using DataLab