gnotebook: Notebook container

Description Usage Arguments Value See Also Examples

View source: R/gnotebook.R

Description

Notebook container

Usage

1
2
gnotebook(tab.pos = 3, close.buttons = FALSE, container, ...,
  width = NULL, height = NULL, ext.args = NULL)

Arguments

tab.pos

where to place tabs. A value of 1 is the bottom, else the top.

close.buttons

Logical. Are there close buttons on the tabs

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.

...

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.

Value

a GNotebook reference class object.

See Also

The gstackwidget container is similar, but has no tabs.

Examples

1
2
3
4
5
w <- gwindow()
nb <- gnotebook(cont=w)
gbutton("hello", container=nb, label="My label") ## pass in label argument through ... to \code{add}
gbutton("page 2", container=nb, label="page 2")
svalue(nb) <- 1

jverzani/gWidgetsWWW2 documentation built on Feb. 9, 2020, 5:18 p.m.