summaryrefslogtreecommitdiffstats
path: root/examples/example-colspan.html
diff options
context:
space:
mode:
Diffstat (limited to 'examples/example-colspan.html')
-rw-r--r--examples/example-colspan.html50
1 files changed, 24 insertions, 26 deletions
diff --git a/examples/example-colspan.html b/examples/example-colspan.html
index 4f17f47..c3eb969 100644
--- a/examples/example-colspan.html
+++ b/examples/example-colspan.html
@@ -1,9 +1,9 @@
<!DOCTYPE HTML>
<html>
<head>
- <link rel="stylesheet" href="../slick.grid.css" type="text/css" />
- <link rel="stylesheet" href="../css/smoothness/jquery-ui-1.8.16.custom.css" type="text/css" />
- <link rel="stylesheet" href="examples.css" type="text/css" />
+ <link rel="stylesheet" href="../slick.grid.css" type="text/css"/>
+ <link rel="stylesheet" href="../css/smoothness/jquery-ui-1.8.16.custom.css" type="text/css"/>
+ <link rel="stylesheet" href="examples.css" type="text/css"/>
</head>
<body>
<table width="100%">
@@ -31,49 +31,47 @@
<script>
var grid;
-
var columns = [
- {id:"title", name:"Title", field:"title"},
- {id:"duration", name:"Duration", field:"duration"},
- {id:"%", name:"% Complete", field:"percentComplete", selectable:false},
- {id:"start", name:"Start", field:"start"},
- {id:"finish", name:"Finish", field:"finish"},
- {id:"effort-driven", name:"Effort Driven", field:"effortDriven"}
+ {id: "title", name: "Title", field: "title"},
+ {id: "duration", name: "Duration", field: "duration"},
+ {id: "%", name: "% Complete", field: "percentComplete", selectable: false},
+ {id: "start", name: "Start", field: "start"},
+ {id: "finish", name: "Finish", field: "finish"},
+ {id: "effort-driven", name: "Effort Driven", field: "effortDriven"}
];
var options = {
- enableCellNavigation:true,
- enableColumnReorder:false
+ enableCellNavigation: true,
+ enableColumnReorder: false
};
$(function () {
var data = [];
for (var i = 0; i < 10; i++) {
data[i] = {
- title:"Task " + i,
- duration:"5 days",
- percentComplete:Math.round(Math.random() * 100),
- start:"01/01/2009",
- finish:"01/05/2009",
- effortDriven:(i % 5 == 0)
+ title: "Task " + i,
+ duration: "5 days",
+ percentComplete: Math.round(Math.random() * 100),
+ start: "01/01/2009",
+ finish: "01/05/2009",
+ effortDriven: (i % 5 == 0)
};
}
data.getItemMetadata = function (row) {
if (row % 2 === 1) {
return {
- "columns":{
- "duration":{
- "colspan":3
+ "columns": {
+ "duration": {
+ "colspan": 3
}
}
};
- }
- else {
+ } else {
return {
- "columns":{
- 0:{
- "colspan":"*"
+ "columns": {
+ 0: {
+ "colspan": "*"
}
}
};