Description Usage Arguments Value See Also Examples
A container to give a different context than the default for a set of items
1 | aContainer(..., context = NULL, attr = list(), enabled_when, visible_when)
|
context |
ItemGroup or item to get context from. Typically just NULL. |
attr |
gWidget values passed to constructor |
enabled_when |
Method to determine when items in container should be enabled |
visible_when |
Method to determine when items in container should be visible |
... |
children items specified by character strings |
Returns a proto
object. Call obj$show_help()
to view its methods and properties.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | i <- aDialog(items=list(x=numericItem(1), y=stringItem("a")))
lay <- aContainer("x","y")
## Not run: i$make_gui(gui_layout=lay)
## how to do enabled when
lay <- aContainer("x",
aContainer("y", enabled_when=function(.) .$get_x() > 1))
j <- i$instance()
## Not run: j$make_gui(gui_layout=lay)
## visible can be used to hide values if not needed
i <- aDialog(items=list(x=numericItem(1), y=stringItem("a")))
lay <- aContainer("x","y")
## Not run: i$make_gui(gui_layout=lay)
## how to do enabled when
lay <- aContainer("x",
aContainer("y", visible_when=function(.) .$get_x() > 1))
k <- i$instance()
## Not run: k$make_gui(gui_layout=lay)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.