gtext: A text area widget

Description Usage Arguments Value Examples

Description

XXX: there is an issue with single quotes.

Usage

1
2
3
4
  gtext(text = "", width = NULL, height = 300,
    font.attr = NULL, wrap = TRUE, handler = NULL,
    action = NULL, container = NULL, ..., ext.args = NULL,
    grow = FALSE)

Arguments

text

initial text. There is an issue with single quotes – avoid them.

width

width in pixels

height

height in pixels

font.attr

Ignored. Default font attributes

wrap

Ignored Do we wrap the text

handler

optional handler bound via addHandlerChanged

action

optional value to paramaterize handler

container

parent container

...

passed along to add call of the container. Can be used to adjust layout parameters. May also have other uses.

ext.args

A list of extra arguments to pass to the ExtJS constructor

Value

an ExtWidget instance

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
w <- gwindow("gtext example")
sb <- gstatusbar("Powered by gWidgetsWWW2.rapache and rapache", cont=w)
g <- ggroup(cont=w, horizontal=FALSE)
txt <- gtext("Some text with \n new lines", cont=g)
b <- gbutton("click", cont=g, handler=function(h,...) {
  galert(svalue(b), parent=w)
})
 b <- gbutton("change", cont=g, handler=function(h,...) {
   svalue(txt) <- "some new text"
})

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