Description Usage Arguments Examples
A simple way to layout forms with labels. The label is passed to
the label
argument of the control's constructor which is
then passed along to the add
method of the parent
container.
1 2 3 |
align |
alignment of labels, from |
spacing |
spacing between columns |
container |
parent container |
... |
passed to |
label.width |
width reserved for labels |
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 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Not run:
w <- gwindow("gformlayout")
g <- gvbox(container=w)
flyt <- gformlayout(container=g)
gedit("", label="Name:", container=flyt)
gedit("", label="Rank:", container=flyt)
gedit("", label="Serial No.:", container=flyt)
b <- gbutton("Show me", container=g, handler=function(h,...) {
print(svalue(flyt))
})
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.