tableItem: List editor - list <-> tree, must have special structure to...

Description Usage Arguments Value See Also Examples

Description

List editor – list <-> tree, must have special structure to list? XXX This needs writing An item to display a table of data (given as a matrix or data.frame)

Usage

1
2
tableItem(value = data.frame(V1 = "", V2 = ""), name, label = name,
  help = "", tooltip = "", attr = list(expand = TRUE), model, editor, ...)

Arguments

value

Default value of data frame

name

Required name for object. Names should be unique within a group of items

label

ignored

help

Optional help string

tooltip

Optional tooltip to display

attr

A list of attributes to pass to widget on construction. Eg. attr=list(size=c(100,200)).

model

ignored

editor

ignored

...

Passed to parent proto object during call to proto

Value

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

See Also

Item

Examples

1
2
3
## to change data frame
i <- tableItem(mtcars, name="a")
i$set_a(mtcars[1:3, 1:3])

Example output

Loading required package: digest
Loading required package: proto
Loading required package: gWidgets

traitr documentation built on May 2, 2019, 3:32 p.m.