Debian Codegraph @

dojox/grid/tests/test_data_grid_pctWidth.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
3 <html>
4 <head>
5 <title>Test dojox.grid.DataGrid Percentage Width</title>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
7 <style type="text/css">
8 @import "../../../dojo/resources/dojo.css";
9 @import "../resources/Grid.css";
10 @import "../resources/tundraGrid.css";
11 body {
12 font-size: 0.9em;
13 font-family: Geneva, Arial, Helvetica, sans-serif;
14 }
15 .heading {
16 font-weight: bold;
17 padding-bottom: 0.25em;
18 }
19 #grid, #grid2 {
20 width: 85%;
21 height: 25em;
22 padding: 1px;
23 }
24 </style>
25 <script type="text/javascript" src="../../../dojo/dojo.js"
26 data-dojo-config="isDebug:false, parseOnLoad: true"></script>
27 <script type="text/javascript">
28 dojo.require("dijit.dijit");
29 dojo.require("dojox.grid.DataGrid");
30 dojo.require("dojo.data.ItemFileWriteStore");
31 dojo.require("dojo.parser");
32 dojo.addOnLoad(function(){
33 // A quick-and-dirty resize of the grid when the window resizes to
34 // test that percentages "stick" when they are supposed to.
35 dojo.connect(window, "resize", grid, "resize");
36 });
37 </script>
38 <script type="text/javascript" src="support/test_data.js"></script>
39 </head>
40 <body class="tundra">
41 <div class="heading">dojox.grid.DataGrid Percentage Width Test</div>
42 <span dojoType="dojo.data.ItemFileWriteStore"
43 data-dojo-id="jsonStore" url="../../../dijit/tests/_data/countries.json">
44 </span>
45 <table dojoType="dojox.grid.DataGrid"
46 data-dojo-id="grid" id="grid"
47 store="jsonStore" query="{ name: '*' }" rowsPerPage="20" rowSelector="20px">
48 <thead>
49 <tr>
50 <th field="name" width="50%">Country/Continent Name</th>
51 <th field="type" width="20%">Type</th>
52 <th field="population" width="30%">Population</th>
53 </tr>
54 </thead>
55 </table>
56 </body>
57 </html>
58