Description Usage Arguments Value Examples
A text area widget
1 2 3 |
text |
initial text |
width |
width in pixels |
height |
height in pixels |
font.attr |
Ignored. Default font attributes |
wrap |
Ignored Do we wrap the tet |
handler |
optional means (to |
action |
Passed to handler to parameterize a call |
container |
A parent container. In gWidgetsWWW2 a
parent container is not optional (though it can be substituted
with the |
... |
Used to pass along argument to the parent container's
|
ext.args |
The contructors of gWidgetsWWW2 ultimately
call an Ext constructor. The options passed to the Ext constructor
may be added to or overridden by use of this argument. Values are
passed in as named list components and with values converted into JavaScript
objects by |
an ExtWidget instance
1 2 3 4 5 6 7 8 9 10 | w <- gwindow("gtext example")
sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w)
g <- ggroup(cont=w, horizontal=FALSE)
t <- 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(t) <= "some new text"
})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.