Debian Codegraph @

dojox/grid/tests/test_grid_layout_LayoutContainer.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
3 <html>
4 <head>
5 <title>dojox.grid.Grid in Layout Demo</title>
6 <style type="text/css">
7 @import "../resources/Grid.css";
8 @import "../resources/tundraGrid.css";
9 @import "../../../dojo/resources/dojo.css";
10 @import "../../../dijit/themes/tundra/tundra.css";
11 @import "../../../dijit/tests/css/dijitTests.css";
12
13 html, body{
14 width: 100%; /* make the body expand to fill the visible window */
15 height: 100%;
16 padding: 0 0 0 0;
17 margin: 0 0 0 0;
18 overflow: hidden;
19 }
20 .dijitSplitPane{
21 margin: 5px;
22 }
23
24 /* make grid containers overflow hidden */
25 body .dijitContentPane {
26 overflow: hidden;
27 }
28 #rightPane {
29 margin: 0;
30 }
31 </style>
32
33 <script type="text/javascript" src="../../../dojo/dojo.js"
34 data-dojo-config="parseOnLoad: true, isDebug: false"></script>
35
36 <script type="text/javascript">
37 dojo.require("dijit.dijit");
38 dojo.require("dijit.layout.LayoutContainer");
39 dojo.require("dijit.layout.ContentPane");
40 dojo.require("dijit.layout.LinkPane");
41 dojo.require("dijit.layout.SplitContainer");
42 dojo.require("dijit.layout.TabContainer");
43
44 dojo.require("dojox.grid.DataGrid");
45 dojo.require("dojo.data.ItemFileWriteStore");
46
47 dojo.require("dojo.parser"); // scan page for widgets and instantiate them
48 </script>
49 <script type="text/javascript" src="support/test_data.js"></script>
50 <script type="text/javascript">
51 var layout = [[
52 {name: 'Column 1', field: 'col1'},
53 {name: 'Column 2', field: 'col2'},
54 {name: 'Column 3', field: 'col3'},
55 {name: 'Column 4', field: 'col4', width: "150px"},
56 {name: 'Column 5', field: 'col5'}
57 ],[
58 {name: 'Column 6', field: 'col6'},
59 {name: 'Column 7', field: 'col7'},
60 {name: 'Column 8'},
61 {name: 'Column 9', field: 'col3', colSpan: 2}
62 ]];
63 var layout2 = [
64 {name: 'Alpha', field: 'col1'},
65 {name: 'Beta', field: 'col2'},
66 {name: 'Gamma', field: 'col3'},
67 {name: 'Delta', field: 'col4', width: "150px"},
68 {name: 'Epsilon', field: 'col5'},
69 {name: 'Nexilon', field: 'col6'},
70 {name: 'Zeta', field: 'col7'},
71 {name: 'Eta', field: 'col1'},
72 {name: 'Omega', field: 'col8'}
73 ];
74 </script>
75 </head>
76 <body class="tundra">
77 <div id="outer" dojoType="dijit.layout.LayoutContainer"
78 style="width: 100%; height: 100%;">
79
80 <div id="topBar" dojoType="dijit.layout.ContentPane" layoutAlign="top"
81 style="background-color: #274383; color: white; height:100px">
82 top bar
83 </div>
84 <div id="bottomBar" dojoType="dijit.layout.ContentPane" layoutAlign="bottom"
85 style="background-color: #274383; color: white;">
86 bottom bar
87 </div>
88
89 <div id="grid1" dojoType="dojox.grid.DataGrid" store="test_store"
90 structure="layout" layoutAlign="client"></div>
91 </div>
92 </body>
93 </html>