-
Notifications
You must be signed in to change notification settings - Fork 0
/
database.html
51 lines (44 loc) · 1.5 KB
/
database.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
<!DOCTYPE html>
<html>
<head>
<title>Database Data Grid</title>
<script src="https://cdn.zinggrid.com/zinggrid.min.js"></script>
</head>
<body>
<zing-grid id="zing-grid-static-data" pager page-size="5" page-size-options="5 10 15 20">
<zg-caption>
<h1>Static Records</h1>
</zg-caption>
</zing-grid>
<zing-grid id="zing-grid-performance-data" pager page-size="5" page-size-options="5 10 15 20">
<zg-caption>
<h1>Performance Records</h1>
</zg-caption>
</zing-grid>
<zing-grid id="zing-grid-activity-data" pager page-size="5" page-size-options="5 10 15 20">
<zg-caption>
<h1>Activity Records</h1>
</zg-caption>
</zing-grid>
<script>
const zgRefStatic = document.querySelector('#zing-grid-static-data');
fetch('/api/static/')
.then(response => response.json())
.then(data => {
zgRefStatic.data = data;
});
const zgRefPerformance = document.querySelector('#zing-grid-performance-data');
fetch('/api/performance/')
.then(response => response.json())
.then(data => {
zgRefPerformance.data = data;
});
const zgRefActivity = document.querySelector('#zing-grid-activity-data');
fetch('/api/activity/')
.then(response => response.json())
.then(data => {
zgRefActivity.data = data;
});
</script>
</body>
</html>