-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
45 lines (43 loc) · 1.62 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>jQuery Tabulate Plugin</title>
<script type="text/javascript" src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="src/jquery.tabulate.js"></script>
<link type="text/css" rel="stylesheet" href="src/themes/default/styles.css" />
<style type="text/css">a.api { color: #000; margin-top: 10px; }</style>
<script type="text/javascript">
jQuery(function($) {
$("#tabulate").tabulate({
data: {
source: {
ajax: {
url: "data.php",
dataType: "json"
}
}
},
table: {
body: {
columns: {
"col1": {
content: "{col1}",
events: {
"click": function(event, $cell, $content, data) {
console.log("click", event, $cell, $content, data);
}
}
}
}
}
}
});
});
</script>
</head>
<body>
<p><a href="doc/" class="api">Documentation</a></p>
<div id="tabulate"></div>
</body>
</html>