-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
57 lines (48 loc) · 2.31 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
46
47
48
49
50
51
52
53
54
55
56
57
<html lang="en">
<head>
<meta charset="utf-8">
<title>SlickGrid Simple Demo</title>
<!-- Recline CSS -->
<link href="css/grid.css" rel="stylesheet">
<link href="css/slickgrid.css" rel="stylesheet">
<!-- Vendor CSS -->
<link href="vendor/slickgrid/2.0.1/slick.grid.css" rel="stylesheet">
<!-- you do not have to use bootstrap but it makes things a little prettier -->
<link rel="stylesheet" href="vendor/bootstrap/2.3.2/css/bootstrap.css">
<!-- Vendor JS -->
<script src="vendor/jquery/1.7.1/jquery.js" type="text/javascript"></script>
<script src="vendor/slickgrid/2.0.1/jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
<script src="vendor/slickgrid/2.0.1/jquery.event.drag-2.0.min.js" type="text/javascript"></script>
<script src="vendor/slickgrid/2.0.1/slick.grid.min.js" type="text/javascript"></script>
<script src="vendor/slickgrid/2.0.1/plugins/slick.rowselectionmodel.js" type="text/javascript"></script>
<script src="vendor/slickgrid/2.0.1/plugins/slick.rowmovemanager.js" type="text/javascript"></script>
<script src="vendor/underscore/1.4.4/underscore.js" type="text/javascript"></script>
<script src="vendor/backbone/1.0.0/backbone.js" type="text/javascript"></script>
<script src="vendor/mustache/0.5.0-dev/mustache.js" type="text/javascript"></script>
<!-- Recline JS (combined distribution, all views) -->
<script src="dist/recline.js" type="text/javascript"></script>
</head>
<body>
<div id="mygrid" style="height: 400px"></div>
<script>
var data = [
{id: 0, date: '2011-01-01', x: 1, y: 2, z: 3, country: 'DE', geo: {lat:52.56, lon:13.40} },
{id: 1, date: '2011-02-02', x: 2, y: 4, z: 24, country: 'UK', geo: {lat:54.97, lon:-1.60}},
{id: 2, date: '2011-03-03', x: 3, y: 6, z: 9, country: 'US', geo: {lat:40.00, lon:-75.5}},
{id: 3, date: '2011-04-04', x: 4, y: 8, z: 6, country: 'UK', geo: {lat:57.27, lon:-6.20}},
{id: 4, date: '2011-05-04', x: 5, y: 10, z: 15, country: 'UK', geo: {lat:51.58, lon:0}},
{id: 5, date: '2011-06-02', x: 6, y: 12, z: 18, country: 'DE', geo: {lat:51.04, lon:7.9}}
];
var dataset = new recline.Model.Dataset({
records: data
});
var $el = $('#mygrid');
var grid = new recline.View.SlickGrid({
model: dataset,
el: $el
});
grid.visible = true;
grid.render();
</script>
</body>
</html>