gcheckbox: checkbox widget

Description Usage Arguments Note Examples

Description

checkbox widget

Usage

1
2
3
4
  gcheckbox(text = "", checked = FALSE,
    use.togglebutton = FALSE, handler = NULL,
    action = NULL, container = NULL, ..., width = NULL,
    height = NULL, ext.args = NULL)

Arguments

text

character. text label for checkbox.

checked

logical. initial state (Set later with svalue<-)

use.togglebutton

logical. XXX not implemented If TRUE, represent with a togglebutton, else use check box

handler

optional handler bound via addHandlerChanged

action

optional value to paramaterize handler

container

parent container

...

passed along to add call of the container. Can be used to adjust layout parameters. May also have other uses.

width

a pre-specified width (in pixels) for the widget

height

a pre-specified height (in pixels) for the widget

ext.args

A list of extra arguments to pass to the ExtJS constructor

Note

No method to set label

Examples

1
2
3
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))

jverzani/gWidgetsWWW2.rapache documentation built on May 20, 2019, 5:19 a.m.