Learn R Programming

traitr (version 0.14)

imageItem: Display an image specified by its filename.

Description

Display an image specified by its filename.

Usage

imageItem(value = "", name, label = name, help = "", tooltip = "", attr = list(), model, editor, ...)

Arguments

value
name of file
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

Run this code
img <- system.file("images/plot.gif", package="gWidgets")   ## some image
i <- imageItem(img)                                         ## constructor
## Not run: i$make_ui(container=gwindow("Image"))                       ## show item directly

Run the code above in your browser using DataLab