2150 |
mathias |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
|
|
2 |
<html>
|
|
|
3 |
<head>
|
|
|
4 |
<title>Dijit Grid</title>
|
|
|
5 |
<script type="text/javascript">
|
|
|
6 |
var djConfig = {isDebug: true, debugAtAllCosts: true};
|
|
|
7 |
</script>
|
|
|
8 |
<style type="text/css">
|
|
|
9 |
@import "../../dojo/resources/dojo.css";
|
|
|
10 |
@import "css/dijitTests.css";
|
|
|
11 |
</style>
|
|
|
12 |
|
|
|
13 |
|
|
|
14 |
<script type="text/javascript" src="../../dojo/dojo.js"></script>
|
|
|
15 |
<script type="text/javascript" src="_testCommon.js"></script>
|
|
|
16 |
|
|
|
17 |
<style type="text/css">
|
|
|
18 |
body{ padding:1em 3em; }
|
|
|
19 |
|
|
|
20 |
/* The following will end up being added by code. */
|
|
|
21 |
.dijitGridColumn1{ width:60px; }
|
|
|
22 |
.dijitGridColumn2{ width:100px; }
|
|
|
23 |
.dijitGridColumn3{ width:100px; }
|
|
|
24 |
.dijitGridColumn4{ width:280px; }
|
|
|
25 |
/* End code add */
|
|
|
26 |
|
|
|
27 |
div.clear { clear:both; }
|
|
|
28 |
div.dijitGrid {
|
|
|
29 |
width:600px;
|
|
|
30 |
border:1px solid #ccc;
|
|
|
31 |
margin:1em;
|
|
|
32 |
}
|
|
|
33 |
table td {
|
|
|
34 |
border:1px solid #ccc;
|
|
|
35 |
border-collapse:none;
|
|
|
36 |
}
|
|
|
37 |
div.digitGridRow {
|
|
|
38 |
border:1px solid #c00;
|
|
|
39 |
clear:both;
|
|
|
40 |
}
|
|
|
41 |
span.dijitGridCell{
|
|
|
42 |
padding:0.25em;
|
|
|
43 |
display:block;
|
|
|
44 |
float:left;
|
|
|
45 |
}
|
|
|
46 |
span.dijitGridSeparator{
|
|
|
47 |
display:block;
|
|
|
48 |
float:left;
|
|
|
49 |
width:1px;
|
|
|
50 |
border-left:1px solid #ccc;
|
|
|
51 |
}
|
|
|
52 |
div.dijitGridHead {
|
|
|
53 |
background-color:#efefef;
|
|
|
54 |
border-bottom:1px solid #ccc;
|
|
|
55 |
font-weight:bold;
|
|
|
56 |
}
|
|
|
57 |
div.dijitGridBody {
|
|
|
58 |
height:200px;
|
|
|
59 |
overflow:auto;
|
|
|
60 |
}
|
|
|
61 |
div.dijitGridBodyContent {
|
|
|
62 |
overflow:visible;
|
|
|
63 |
}
|
|
|
64 |
|
|
|
65 |
div.dijitGridFoot { }
|
|
|
66 |
</style>
|
|
|
67 |
</head>
|
|
|
68 |
<body>
|
|
|
69 |
<h1>Dijit Grid: Table Test</h1>
|
|
|
70 |
<p>This is a pure HTML test, in order to develop the eventual markup structure for the Dijit Grid. It is <strong>not</strong> a working Grid, nor will it be the eventual Grid test.</p>
|
|
|
71 |
<div class="dijitGrid">
|
|
|
72 |
<div class="dijitGridHead">
|
|
|
73 |
<div class="dijitGridRow">
|
|
|
74 |
<span class="dijitGridCell dijitGridColumn1">Name</span>
|
|
|
75 |
<span class="dijitGridSeparator"></span>
|
|
|
76 |
<span class="dijitGridCell dijitGridColumn2">Date Added</span>
|
|
|
77 |
<span class="dijitGridSeparator"></span>
|
|
|
78 |
<span class="dijitGridCell dijitGridColumn3">Date Modified</span>
|
|
|
79 |
<span class="dijitGridSeparator"></span>
|
|
|
80 |
<span class="dijitGridCell dijitGridColumn4">Label</span>
|
|
|
81 |
<div class="clear"></div>
|
|
|
82 |
</div>
|
|
|
83 |
</div>
|
|
|
84 |
<div class="dijitGridBody">
|
|
|
85 |
<div class="dijitGridBodyContent">
|
|
|
86 |
<table cellpadding="0" cellspacing="0" border="0" width="576" style="margin:0;border:0;">
|
|
|
87 |
<colgroup>
|
|
|
88 |
<col width="60"/>
|
|
|
89 |
<col width="100"/>
|
|
|
90 |
<col width="100"/>
|
|
|
91 |
<col width="280"/>
|
|
|
92 |
</colgroup>
|
|
|
93 |
<tr><td>Adam</td><td>3/1/2004</td><td>11/1/2003</td><td><p><strong>Lorem ipsum</strong> dolor sit amet...</p><div>consectetuer</div></td></tr>
|
|
|
94 |
<tr><td>Betty</td><td>6/15/2005</td><td>1/7/2006</td><td>Adipiscing elit, sed diam nonummy nibh euismod</td></tr>
|
|
|
95 |
<tr><td>Carla</td><td>4/23/2002</td><td>3/1/2004</td><td>tincidunt ut laoreet dolore magna aliquam erat volutpat.</td></tr>
|
|
|
96 |
<tr><td>David</td><td>11/1/2003</td><td>6/15/2005</td><td>Ut wisi enim ad minim veniam, quis</td></tr>
|
|
|
97 |
<tr><td>Esther</td><td>1/7/2006</td><td>4/23/2002</td><td>nostrud exerci tation ullamcorper</td></tr>
|
|
|
98 |
<tr><td>Fred</td><td>3/1/2004</td><td>11/1/2003</td><td>suscipit lobortis nisl ut aliquip ex ea commodo consequat.</td></tr>
|
|
|
99 |
<tr><td>Greg</td><td>6/15/2005</td><td>1/7/2006</td><td><p><strong>Lorem ipsum</strong> dolor sit amet...</p><div>consectetuer</div></td></tr>
|
|
|
100 |
<tr><td>Helga</td><td>4/23/2002</td><td>3/1/2004</td><td>adipiscing elit, sed diam nonummy nibh euismod</td></tr>
|
|
|
101 |
<tr><td>Ianna</td><td>11/1/2003</td><td>6/15/2005</td><td>tincidunt ut laoreet dolore magna aliquam erat volutpat.</td></tr>
|
|
|
102 |
<tr><td>Jane</td><td>1/7/2006</td><td>4/23/2002</td><td>Ut wisi enim ad minim veniam, quis</td></tr>
|
|
|
103 |
</table>
|
|
|
104 |
</div>
|
|
|
105 |
</div>
|
|
|
106 |
<div class="dijitGridFoot">
|
|
|
107 |
</div>
|
|
|
108 |
</div>
|
|
|
109 |
<h2>A regular table, for comparison purposes</h2>
|
|
|
110 |
<table cellpadding="0" cellspacing="0" border="0" width="600">
|
|
|
111 |
<thead>
|
|
|
112 |
<tr>
|
|
|
113 |
<th width="60" valign="top">Name</th>
|
|
|
114 |
<th width="100" align="center" valign="top">Date Added</th>
|
|
|
115 |
<th width="100" align="center" valign="top">Date Modified</th>
|
|
|
116 |
<th>Label</th>
|
|
|
117 |
</tr>
|
|
|
118 |
</thead>
|
|
|
119 |
<tbody>
|
|
|
120 |
<tr><td>Adam</td><td>3/1/2004</td><td>11/1/2003</td><td><p><strong>Lorem ipsum</strong> dolor sit amet...</p><div>consectetuer</div></td></tr>
|
|
|
121 |
<tr><td>Betty</td><td>6/15/2005</td><td>1/7/2006</td><td>Adipiscing elit, sed diam nonummy nibh euismod</td></tr>
|
|
|
122 |
<tr><td>Carla</td><td>4/23/2002</td><td>3/1/2004</td><td>tincidunt ut laoreet dolore magna aliquam erat volutpat.</td></tr>
|
|
|
123 |
<tr><td>David</td><td>11/1/2003</td><td>6/15/2005</td><td>Ut wisi enim ad minim veniam, quis</td></tr>
|
|
|
124 |
<tr><td>Esther</td><td>1/7/2006</td><td>4/23/2002</td><td>nostrud exerci tation ullamcorper</td></tr>
|
|
|
125 |
<tr><td>Fred</td><td>3/1/2004</td><td>11/1/2003</td><td>suscipit lobortis nisl ut aliquip ex ea commodo consequat.</td></tr>
|
|
|
126 |
<tr><td>Greg</td><td>6/15/2005</td><td>1/7/2006</td><td><p><strong>Lorem ipsum</strong> dolor sit amet...</p><div>consectetuer</div></td></tr>
|
|
|
127 |
<tr><td>Helga</td><td>4/23/2002</td><td>3/1/2004</td><td>adipiscing elit, sed diam nonummy nibh euismod</td></tr>
|
|
|
128 |
<tr><td>Ianna</td><td>11/1/2003</td><td>6/15/2005</td><td>tincidunt ut laoreet dolore magna aliquam erat volutpat.</td></tr>
|
|
|
129 |
<tr><td>Jane</td><td>1/7/2006</td><td>4/23/2002</td><td>Ut wisi enim ad minim veniam, quis</td></tr>
|
|
|
130 |
</tbody>
|
|
|
131 |
</table>
|
|
|
132 |
</body>
|
|
|
133 |
</html>
|