aContainer(..., context, attr=list(), enabled_when, visible_when)
proto
object. Call obj$show_help()
to view its methods and properties.Container
i <- aDialog(items=list(x=numericItem(1), y=stringItem("a")))
lay <- aContainer("x","y")
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()
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")
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()
k$make_gui(gui_layout=lay)
Run the code above in your browser using DataLab