Description Usage Arguments Value See Also Examples
Needs to have a dataframeItem specified to be useful.
1 2 | variableSelectorItem(value = NA, multiple = FALSE, dataframeItem, name,
label = name, help = "", tooltip = "", attr, model, editor, ...)
|
value |
Default data frame for the model, defaults to .GlobalEnv |
multiple |
Allow multiple selection? |
dataframeItem |
A required dataframeItem instance. This need not be in same display, or even displayed |
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 |
attr |
A list of attributes to pass to widget on construction. Eg. attr=list(size=c(100,200)) This widget uses a gtable instance and specifying the size is suggested |
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 | df <- data.frame(a=1:3, b= letters[1:3], c=rnorm(3)) # make a data frame
dfI <- dataframeItem(value="df", name="dfI")
dlg <- aDialog(items=list(
dfI, ## a bit awkward -- can't define dfI in list of items
variable=variableSelectorItem(dataframeItem=dfI))
)
## Not run: dlg$make_gui()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.