e44a7e37b6
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
84 lines
3.8 KiB
HTML
84 lines
3.8 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<title>Test dojox.Grid Basic</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
|
|
<style type="text/css">
|
|
@import "../_grid/Grid.css";
|
|
@import "../_grid/tundraGrid.css";
|
|
@import "../../../dojo/resources/dojo.css";
|
|
@import "../../../dijit/themes/tundra/tundra.css";
|
|
body {
|
|
font-size: 0.9em;
|
|
font-family: Geneva, Arial, Helvetica, sans-serif;
|
|
}
|
|
.heading {
|
|
font-weight: bold;
|
|
padding-bottom: 0.25em;
|
|
}
|
|
|
|
#grid {
|
|
border: 1px solid #333;
|
|
width: 65em;
|
|
height: 30em;
|
|
}
|
|
</style>
|
|
<script type="text/javascript" src="../../../dojo/dojo.js" djConfig="isDebug:false, parseOnLoad: true"></script>
|
|
<!--<script type="text/javascript">
|
|
dojo.require("dojox.grid.Grid");
|
|
dojo.require("dojo.parser");
|
|
</script>-->
|
|
<!-- Debugging -->
|
|
<script type="text/javascript" src="../_grid/lib.js"></script>
|
|
<script type="text/javascript" src="../_grid/drag.js"></script>
|
|
<script type="text/javascript" src="../_grid/scroller.js"></script>
|
|
<script type="text/javascript" src="../_grid/builder.js"></script>
|
|
<script type="text/javascript" src="../_grid/cell.js"></script>
|
|
<script type="text/javascript" src="../_grid/layout.js"></script>
|
|
<script type="text/javascript" src="../_grid/rows.js"></script>
|
|
<script type="text/javascript" src="../_grid/focus.js"></script>
|
|
<script type="text/javascript" src="../_grid/selection.js"></script>
|
|
<script type="text/javascript" src="../_grid/edit.js"></script>
|
|
<script type="text/javascript" src="../_grid/view.js"></script>
|
|
<script type="text/javascript" src="../_grid/views.js"></script>
|
|
<script type="text/javascript" src="../_grid/rowbar.js"></script>
|
|
<script type="text/javascript" src="../_grid/publicEvents.js"></script>
|
|
<script type="text/javascript" src="../VirtualGrid.js"></script>
|
|
<script type="text/javascript" src="../_data/fields.js"></script>
|
|
<script type="text/javascript" src="../_data/model.js"></script>
|
|
<script type="text/javascript" src="../_data/editors.js"></script>
|
|
<script type="text/javascript" src="../Grid.js"></script>
|
|
<script type="text/javascript" src="support/test_data.js"></script>
|
|
<script type="text/javascript">
|
|
// a grid view is a group of columns
|
|
var view1 = {
|
|
cells: [[
|
|
{name: 'Column 0'}, {name: 'Column 1', width: "10em"}, {name: 'Column 2', width:"100px"}, {name: 'Column 3 is 25%', width: "25%"}, {name: 'Column 4 is 75% of the remaining space', width: "75%"}
|
|
]]
|
|
};
|
|
// a grid layout is an array of views.
|
|
var layout = [ view1 ];
|
|
|
|
|
|
var layout2 = [// array of view objects
|
|
{ type: 'dojox.GridRowView', width: '20px' },
|
|
{ noscroll: true, cells: [// array of rows, a row is an array of cells
|
|
[{ name: "Alpha", value: '<input type="checkbox"></input>', rowSpan: 2, width: 6, styles: 'text-align:center;' }, { name: "Alpha 2", value: "Alpha2" }],
|
|
[{ name: "Alpha 3", value: "Alpha3" }]
|
|
]},
|
|
{ cells: [
|
|
[{ name: "Beta", value: 'simple'}, { name: "Beta 2", value: "Beta 2" }, { name: "Beta 3", value: "Beta 3" }, { name: "Beta 4", value: "Beta 4", width: "auto" }, { name: "Beta 5 is good", value: "Beta 5", width: "auto" }],
|
|
[{ name: "Summary", colSpan: 5, value: 'Summary' }]
|
|
]},
|
|
{ noscroll: true, cells: [
|
|
[{ name: "Gamma", value: "Gamma" }, { name: "Gamma2", value: "<button>Radiate</button>", styles: 'text-align:center;' }]]
|
|
}];
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div class="heading">dojox.Grid Basic Test</div>
|
|
<div jsid="grid" id="grid" dojoType="dojox.Grid" model="model" structure="layout"></div>
|
|
<br /><br />
|
|
<div jsid="grid2" id="grid2" dojoType="dojox.VirtualGrid" model="model" structure="layout2" rowCount="50"></div>
|
|
</body>
|
|
</html>
|