Description Usage Arguments Value Examples
XXX: there is an issue with single quotes.
1 2 3 4 |
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
|
action |
optional value to paramaterize handler |
container |
parent container |
... |
passed along to |
ext.args |
A list of extra arguments to pass to the ExtJS constructor |
an ExtWidget instance
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"
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.