Description Usage Arguments Details Value Author(s) Examples
Build a simple AnalysisPageParam
1 2 3 4 |
name |
Name of form element |
label |
Label for form element (typically rendered to the left of the element) |
description |
Description for form element (typically rendered as roll-over text) |
value |
The default, starting value, for the form (default: "") |
type |
Type of form element. This can be "text", "textarea", "checkbox", "password" or "file" |
advanced |
Integer. 0 means the option is not advanced, and increasing levels indicate the option is for more advanced users. Advanced > 0 should be hidden under default mode. |
show.if |
A list of two elements: |
display.callback |
NULL, to follow |
size |
A word giving the size of the element. The interpretation of this size is up to the front-end.
Must from a defined set of words, which you can see by calling |
required |
Logical. Is this a required param? Default: TRUE. If set, then the front-end will the front-end user is required to set this parameter before submitting the request. The meaning of "set this parameter" is not entirely clear. |
persistent |
Character or NULL. If non-NULL then it is passed to the front-end. It names a variable in persistent storage that should be used to initialize the value of the parameter. The front end will provide some mechanism to change the persistent value, but until the user does so the param will be initialized from the value in the persistent space. |
persistent.dependencies |
A character vector or NULL (default) specifying the names
of other parameters on
which this one "depends". It is an error to include the parameter itself ( |
transformer |
A function with signature |
Build a simple AnalysisPageParam. These include mainly parameters that can be rendered simply as HTML <input> tags.
An AnalysisPageParam. This is just a list with class name slapped on.
Brad Friedman
1 2 3 | x <- simple.param("xmin", label="X-min", description="Minimum x value", type="text")
# Please see the "Persistent Parameters" and "Conditionally Persistent Parameters"
# sections of the Interactive Apps vignette for demonstrations of these functionalities
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.