Debian Codegraph @

dojox/grid/tests/test_data_grid_autoheight.html

raw symbols SCIP
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html>
3 <head>
4 <title>Test dojox.grid.DataGrid Autoheight test</title>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
6 <style type="text/css">
7 @import "../../../dojo/resources/dojo.css";
8 @import "../resources/Grid.css";
9 @import "../resources/tundraGrid.css";
10 .heading {
11 font-weight: bold;
12 padding-bottom: 0.25em;
13 margin-top: 1em;
14 }
15 .grid {
16 width: 65em;
17 height: 25em;
18 padding: 1px;
19 }
20 </style>
21 <script type="text/javascript" src="../../../dojo/dojo.js"
22 data-dojo-config="isDebug:true, parseOnLoad: true"></script>
23 <script type="text/javascript">
24 dojo.require("dijit.dijit");
25 dojo.require("dojox.grid.DataGrid");
26 dojo.require("dojo.data.ItemFileWriteStore");
27 dojo.require("dojo.parser");
28 </script>
29 <script type="text/javascript" src="support/test_data.js"></script>
30 </head>
31 <body class="tundra">
32 <span dojoType="dojo.data.ItemFileWriteStore"
33 data-dojo-id="jsonStore" url="../../../dijit/tests/_data/countries.json">
34 </span>
35 <div class="heading">No autoHeight (takes height of the div)</div>
36 <table dojoType="dojox.grid.DataGrid"
37 class="grid" store="jsonStore"
38 query="{ name: '*' }" rowsPerPage="20" rowSelector="20px">
39 <thead>
40 <tr>
41 <th field="name" width="300px">Country/Continent Name</th>
42 <th field="type" width="auto">Type</th>
43 </tr>
44 </thead>
45 </table>
46
47 <div class="heading">autoHeight=true</div>
48 <table dojoType="dojox.grid.DataGrid"
49 class="grid" store="jsonStore" autoHeight="true"
50 query="{ type: 'city' }" rowsPerPage="20" rowSelector="20px">
51 <thead>
52 <tr>
53 <th field="name" width="300px">Country/Continent Name</th>
54 <th field="type" width="auto">Type</th>
55 </tr>
56 </thead>
57 </table>
58
59 <div class="heading">autoHeight=5 (7 elements)</div>
60 <table dojoType="dojox.grid.DataGrid"
61 class="grid" store="jsonStore" autoHeight="5"
62 query="{ type: 'city' }" rowsPerPage="20" rowSelector="20px">
63 <thead>
64 <tr>
65 <th field="name" width="300px">Country/Continent Name</th>
66 <th field="type" width="auto">Type</th>
67 </tr>
68 </thead>
69 </table>
70
71 <div class="heading">autoHeight=10 (7 elements)</div>
72 <table dojoType="dojox.grid.DataGrid"
73 class="grid" store="jsonStore" autoHeight="10"
74 query="{ type: 'city' }" rowsPerPage="20" rowSelector="20px">
75 <thead>
76 <tr>
77 <th field="name" width="300px">Country/Continent Name</th>
78 <th field="type" width="auto">Type</th>
79 </tr>
80 </thead>
81 </table>
82 </body>
83 </html>