-
Notifications
You must be signed in to change notification settings - Fork 2
/
object_of_columns.html
47 lines (41 loc) · 1.16 KB
/
object_of_columns.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8"/>
<title>Object of Columns</title>
<link rel="stylesheet" href="demo.css">
</head>
<body>
<h1><a href="index.html">gridchen Index</a> / Object of Columns</h1>
<p>
The data is an object of column arrays.
</p>
</body>
<script type="module">
import "./gridchen/webcomponent.js"
import {createInteractiveDemoGrid} from "./demo.js"
createInteractiveDemoGrid(
{
title: 'Object of Columns',
type: 'object',
properties: {
timestamp: {
type: 'array',
items: {title: 'TimeStamp', type: 'string', format: 'full-date', width: 200}
},
age: {
type: 'array', items: {title: 'Age', width: 100, type: 'number'}
},
weight: {
type: 'array', items: {title: 'Weight', width: 100, type: 'number'}
}
}
},
{
timestamp: ["2019-01-01", "2019-01-02", "2019-01-03"],
age: [0, 2, 4],
weight: [0, 1, 2]
}
);
</script>
</html>