A notebook container.

Share:

Description

Pages of notebook are made with aNotebookPage container, which in turn can hold other items.

Usage

1
2
aNotebook(..., close_buttons = FALSE, initial_page = 1, context = NULL,
  attr = list(expand = TRUE), enabled_when, visible_when)

Arguments

close_buttons

Logical indicating if close buttons should be added (RGtk2 only)

initial_page

Which page to open on

context

ItemGroup or item to get context from. Typically left as NULL.

attr

gWidget values passed to constructor

enabled_when

Method to determine when items in container should be enabled

visible_when

Method to determine when items in container should be visible

...

children items specified by character strings

Value

Returns a proto object. Call obj$show_help() to view its methods and properties.

See Also

Container

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
i <- aDialog(items=list(x=numericItem(1), y=stringItem("a")))
lay <- aNotebook(
          aNotebookPage(label="page 1", "x"),
          aNotebookPage(label="page 2", "y")
        )
i$make_gui(gui_layout=lay)

## End(Not run)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.