Usage
choiceItem(value="", values="", by_index=FALSE, multiple=FALSE,
editable=FALSE, name, label=name, help="", tooltip="", attr, model,
editor, editor_type=c("", "gradio", "gcombobox", "gtable",
"gedit"), ...)
Arguments
value
Default value for the model. This is specified by index (or indices if multiple=TRUE
)
values
Values that one can select from. May be a data frame or vector. The editor depends on the size of
this: small will be radio button or checkboxes; medium is combobox; large is table
by_index
Do we get and set the main value by index or by value?
multiple
Multiple selection is allowed? If so, then only checkboxes or table widget is used
editable
Can user edit value to be selected? If so, the combobox is used
name
Required name for object. Names should be unique within a group of items
label
Optional label, default value is the name
tooltip
Optional tooltip to display
attr
A list of attributes to pass to widget on construction. Eg. attr=list(size=c(100,200)).
The expand=TRUE
value is a default for this.
model
Optional model. Useful if one wishes to use same model for multiple views
editor
Specification of editor (a view) to override default
editor_type
overide choice of editor by size of values. Must set attr to match desired.
...
Passed to parent proto object during call to proto