Description Usage Arguments Value See Also Examples
A string item
1 2 |
value |
Default value for the model |
regex |
If non |
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 10 | ## basic usage
a <- stringItem("ac", name="x")
a$get_x()
a$set_x("abc213")
a$get_x()
## eval first
a <- stringItem("ac", name="x", eval_first=TRUE)
a$set_x("2 + 2")
a$get_x()
a$to_R()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.