gcheckbox {gWidgetsWWW2} | R Documentation |
checkbox widget
gcheckbox(text = "", checked = FALSE, use.togglebutton = FALSE, handler = NULL, action = NULL, container = NULL, ..., width = NULL, height = NULL, ext.args = NULL)
text |
character. text label for checkbox. |
checked |
logical. initial state (Set later with |
use.togglebutton |
logical. XXX not implemented If TRUE, represent with a togglebutton, else use check box |
handler |
optional means (to |
action |
Passed to handler to parameterize a call |
container |
A parent container. In gWidgetsWWW2 a
parent container is not optional (though it can be substituted
with the |
... |
Used to pass along argument to the parent container's
|
width |
width in pixels of component. Sizing in
gWidgetsWWW2 is sometimes necessary as the arguments
|
height |
height in pixels of the component. |
ext.args |
The contructors of gWidgetsWWW2 ultimately
call an Ext constructor. The options passed to the Ext constructor
may be added to or overridden by use of this argument. Values are
passed in as named list components and with values converted into JavaScript
objects by |
No method to set label
w <- gwindow() sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w) cb <- gcheckbox("Check me?", cont=w, handler=function(h,...) { if(svalue(h$obj)) galert("checked", parent=w) })