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>Testing qx.ui.listview.ListView with text cells.</p>
16 <p>This qx.ui.listview.ListView will be resized with the window.</p>
17 <p>Using percents for columns.</p>
20 <script type="text/javascript">
21 qx.core.Init.getInstance().defineMain(function()
24 var lt = [ "Image", "Text", "PDF", "Illustration", "Document" ];
26 for (var i=0, t; i<1000; i++)
28 t=Math.round(Math.random()*4);
29 ld.push({ name : { text : "File " + i }, size : { text : Math.round(Math.random()*100) + "kb" }, type : { text : lt[t] }, modified : { text : "Nov " + Math.round(Math.random() * 30 + 1) + " 2005" }, rights: { text : "-rw-r--r--" }});
34 name : { label : "Name", width : "30%", type : "text" },
35 size: { label : "Size", width : "10%", type : "text", align : "right" },
36 type : { label : "Type", width : "15%", type : "text" },
37 modified : { label : "Last Modified", width : "20%", type : "text" },
38 rights : { label : "Rights", width: "15%", type : "text" }
41 var lv = new qx.ui.listview.ListView(ld, lc);
43 lv.setBorder(qx.renderer.border.BorderPresets.getInstance().shadow);
44 lv.setBackgroundColor("white");
45 lv.setLocation(20, 48);
49 qx.ui.core.ClientDocument.getInstance().add(lv);