<script src="../../codebase/dhtmlxdataview.js" type="text/javascript"></script>
<link rel="STYLESHEET" type="text/css" href="../../codebase/dhtmlxdataview.css">
<div id="data_container" style="border:1px solid #A4BED4; background-color:white;width:596px;height:396px;"></div>
<script>dhtmlx.DataDriver.my_jsarray = dhtmlx.extend(; dhtmlx.extend({}, dhtmlx.DataDriver.jsarray), {
getDetails: function(data) {
var result = {};
result.id = data[0];
result.Package = data[1];
result.Version = data[2];
result.Maintainer = data[3];
return result;
}
});
data = new dhtmlXDataView({
container: "data_container",
type: {
template: "#Package# : #Version#<br/>#Maintainer#",
height: 40;
}
});
data.load("../common/data.js", "my_jsarray");
</script>