gborderlayout: A "border" layout is a 5-panel layout where satellite panels...

Description Usage Arguments Details Value Note Author(s) See Also

Description

The gborderlayout container implements a border layout where 4 panels surround a main center panel. The panels may be configured with a title (like gframe) and may be collapsible (like gexpandgroup). Both configurations are done at construction time. The panels only hold one child, so one would add a container to have more complicated layouts.

Usage

1
2
3
  gborderlayout(container, ..., width = "100%",
    height = "100%", ext.args = NULL, title = list(),
    collapsible = list())

Arguments

title

a list with named components from c("center","north", "south", "east", "west") allowing one to specify titles (as length-1 character vectors) of the regions. The default is no title. A title may be added later by adding a gframe instance, but that won't work well with a collapsible panel.

collapsible

a list with named components from c("center","north", "south", "east", "west") allowing one to specify through a logical if the panel will be collapsible, similar to gexpandgroup. The default is FALSE

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

Details

To add a child component, one specifies a value of where to the add method (implicitly called by the constructor, so in practice this argument is passed through ... by the constructor). The value of where is one of c("center","north", "south", "east", "west"). Child components are added with the "fit" layout, which is basically the same as specifying expand=TRUE and fill=TRUE, though those arguments are ignored here.

The satellite panels may be resized through the reference class method set_panel_size with arguments where and a numeric dimension.

Value

a GBorderLayout reference class object

Note

gpanedgroup does not sit nicely within a gnotebook container, avoid trying this.

Author(s)

john verzani

See Also

gpanedgroup is a two-panel border layout with just an "east" or "south" satellite panel configured.


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