Description Usage Arguments Value Examples
stack widget is a "card" container. Use gnotebook
methods to change cards
1 |
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
|
width |
width in pixels of component. Sizing in
gWidgetsWWW2 is sometimes necessary as the arguments
|
height |
height in pixels of the component. |
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 |
a GStackWidget reference class object.
1 2 3 4 5 6 7 8 | w <- gwindow()
sb <- gstatusbar("Powered by gWidgetsWWW and Rook", cont=w)
g <- gstackwidget(cont=w)
gbutton("page 1. Next", cont=g, handler=function(h,...) svalue(g) <- svalue(g) + 1)
gbutton("page 2. Next", cont=g, handler=function(h,...) svalue(g) <- svalue(g) + 1)
gbutton("remove me", cont=g, handler=function(h,...) dispose(g))
gbutton("page 3. First", cont=g, handler=function(h,...) svalue(g) <- 1)
svalue(g) <- 1
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.