Description Usage Arguments Value See Also Examples
Item for numbers
1 2 |
value |
Default value for the model |
name |
Required name for object. Names should be unique within a group of items |
label |
Optional label, default value is the name |
help |
Optional help string |
tooltip |
Optional tooltip to display |
eval_first |
Should value be run through eval/parse before coercion. |
attr |
A list of attributes to pass to widget on construction. Eg. attr=list(size=c(100,200)) |
model |
Optional model. Useful if one wishes to use same model for multiple views |
editor |
Specification of editor (a view) to override default |
... |
Passed to parent proto object during call to proto |
A proto
object. Call obj$show_help()
to view its methods and properties.
1 2 3 4 5 6 7 8 9 | ## basic use
a <- numericItem(0, name="x")
a$set_x(10)
a$get_x()
## eval can be instructed
a <- numericItem(0, name="x", eval_first=TRUE)
a$set_x("1:5")
a$get_x()
a$to_R()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.