gexpandgroup: gexpandgroup A box container which can disclose or hide its...

Description Usage Arguments See Also Examples

View source: R/gexpandgroup.R

Description

Use svalue<- to adjust the title. The visible<- method is used to programatically change whether the child components are displayed.

Usage

1
2
3
gexpandgroup(text = "", horizontal = TRUE, spacing = 2,
  use.scrollwindow = FALSE, container = NULL, handler = NULL,
  action = NULL, ..., width = NULL, height = NULL, ext.args = NULL)

Arguments

text

label text

horizontal

Boolean. Set to TRUE to pack children horizontally.

spacing

Integer. Between child spacing.

use.scrollwindow

Boolean. Set to TRUE to add a scrollwindow to manage space given to child widgets. Containers with scrollwindows often have their size fixed.

container

A parent container. In gWidgetsWWW2 a parent container is not optional (though it can be substituted with the parent argument in some circumstances). The parent specifies the widget heirarchy and the ... argument is used to pass along arguments to layout the child component in the parent container. Typically, these are passed to the add method of the parent container.

handler

Called when expanded or closed

action

passed to handler

...

Used to pass along argument to the parent container's add method and possible other arguments to the underlying ference class constructors.

width

width in pixels of component. Sizing in gWidgetsWWW2 is sometimes necessary as the arguments expand and fill are not well implemented.

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 asJSObject.

See Also

ggroup, gframe

Examples

1
2
3
4
5
w <- gwindow()
sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w)
g <- gexpandgroup("click to close", cont=w)
gbutton("some button", cont=g)
visible(g) <- FALSE ## to close

gWidgetsWWW2 documentation built on May 2, 2019, 6:10 p.m.