-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
29 lines (27 loc) · 904 Bytes
/
demo.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
<!DOCTYPE html>
<html>
<head>
<title>Grouped Header Plug-in Demo</title>
<script src="https://fin-hypergrid.github.io/core/3.3.2/build/fin-hypergrid.js"></script>
<script src="https://fin-hypergrid.github.io/grouped-header-plugin/1.2.4/build/fin-hypergrid-grouped-header-plugin.js"></script>
<script>
window.onload = function() {
var grid = new fin.Hypergrid({ data: [
{ symbol: 'APPL', name: 'Apple Inc.', prevClose: 93.13 },
{ symbol: 'MSFT', name: 'Microsoft Corporation', prevClose: 51.91 },
{ symbol: 'TSLA', name: 'Tesla Motors Inc.', prevClose: 196.40 },
{ symbol: 'IBM', name: 'International Business Machines Corp', prevClose: 155.36 }
] });
grid.installPlugins([
fin.Hypergrid.require('fin-hypergrid-grouped-header-plugin')
]);
grid.behavior.setHeaders({
symbol: 'Stock|Symbol',
name: 'Stock|Company'
});
}
</script>
</head>
<body>
</body>
</html>