-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy patharray_of_row_arrays.html
44 lines (38 loc) · 1.07 KB
/
array_of_row_arrays.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Array of Row Arrays</title>
<link rel="stylesheet" href="demo.css">
<script src="./theme.js"></script>
</head>
<body>
<h1><a href="index.html">gridchen Index</a> / Array of Row Tuples</h1>
<p>
The data is an array of row tuples (fixed length array).
</p>
</body>
<script type="module">
import "./gridchen/webcomponent.js"
import {createInteractiveDemoGrid} from "./demo.js"
createInteractiveDemoGrid(
{
title: 'Array of Row Arrays',
type: 'array',
items: {
type: 'array',
items: [ // tuple schema
{title: 'TimeStamp', width: 200, type: 'string', format: 'full-date'},
{title: 'Age', width: 100, type: 'number'},
{title: 'Weight', width: 100, type: 'number'}
]
}
},
[
["2019-01-01", 0, 0],
["2019-01-02", 1, 2],
["2019-01-03", 2, 4]
]
);
</script>
</html>