3 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
4 <title>qooxdoo » Demo</title>
5 <link type="text/css" rel="stylesheet" href="../../resource/css/layout.css"/>
7 <link type="text/css" rel="stylesheet" href="../../resource/css/layout_ie.css"/>
9 <script type="text/javascript" src="../../script/qx.js"></script>
12 <script type="text/javascript" src="../../script/layout.js"></script>
14 <div id="demoDescription">
15 <p>A simple form using qx.ui.layout.GridLayout</p>
18 <script type="text/javascript">
19 qx.core.Init.getInstance().defineMain(function()
21 var gl = new qx.ui.layout.GridLayout;
23 gl.setLocation(20, 48);
24 gl.setDimension("auto", "auto");
25 gl.setBorder(qx.renderer.border.BorderPresets.getInstance().outset);
29 gl.setVerticalSpacing(4);
30 gl.setHorizontalSpacing(6);
32 gl.setColumnWidth(0, 70);
33 gl.setColumnWidth(1, 180);
35 gl.setColumnHorizontalAlignment(0, "right");
36 gl.setColumnVerticalAlignment(0, "middle");
38 gl.setRowHeight(0, 20);
39 gl.setRowHeight(1, 20);
40 gl.setRowHeight(2, 20);
41 gl.setRowHeight(3, 20);
42 gl.setRowHeight(4, 20);
43 gl.setRowHeight(5, 70);
44 gl.setRowHeight(6, 20);
46 qx.ui.core.ClientDocument.getInstance().add(gl);
48 var label1 = new qx.ui.basic.Label("Given Name");
49 var label2 = new qx.ui.basic.Label("Name");
50 var label3 = new qx.ui.basic.Label("City");
51 var label4 = new qx.ui.basic.Label("Country");
52 var label5 = new qx.ui.basic.Label("E-Mail");
53 var label6 = new qx.ui.basic.Label("Comment");
54 label6.setVerticalAlign("top");
56 label6.setVerticalAlign("top");
58 var input1 = new qx.ui.form.TextField;
59 var input2 = new qx.ui.form.TextField;
60 var input3 = new qx.ui.form.TextField;
61 var input4 = new qx.ui.form.TextField;
62 var input5 = new qx.ui.form.TextField;
63 var input6 = new qx.ui.form.TextArea;
64 var input7 = new qx.ui.form.Button("Submit", "icon/16/apply.png");
66 input7.setHorizontalAlign("right");