-
Notifications
You must be signed in to change notification settings - Fork 0
/
index-dev.html
57 lines (40 loc) · 1.52 KB
/
index-dev.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>Jspreadsheet minimal example </title>
<!-- jspreadsheet -->
<script src="./dist/index.js"></script>
<!-- jsuites -->
<script src="https://jsuites.net/v4/jsuites.js"></script>
<!-- custom styling -->
<link rel="stylesheet" href="./dist/jspreadsheet.css" type="text/css" />
<!-- custom styling -->
<link rel="stylesheet" href="./dist/jspreadsheet.datatables.css" type="text/css" />
<!-- custom styling -->
<link rel="stylesheet" href="./dist/jspreadsheet.theme.css" type="text/css" />
</head>
<body>
<div id="spreadsheet"></div>
</body>
<script src="https://use.fontawesome.com/15661cf560.js"></script>
<script>
var data = [
['Jazz', 'Honda', '2019-02-12', '', true, '$ 2.000,00', '#777700'],
['Civic', 'Honda', '2018-07-11', '', true, '$ 4.000,01', '#007777'],
];
jspreadsheet(document.getElementById('spreadsheet'), {
data: data,
columns: [
{ type: 'text', title: 'Car', width: 120 },
{ type: 'dropdown', title: 'Make', width: 200, source: ["Alfa Romeo", "Audi", "Bmw"] },
{ type: 'calendar', title: 'Available', width: 200 },
{ type: 'image', title: 'Photo', width: 120 },
{ type: 'checkbox', title: 'Stock', width: 80 },
{ type: 'numeric', title: 'Price', width: 100, mask: '$ #.##,00', decimal: ',' },
{ type: 'color', width: 100, render: 'square', }
]
});
</script>
</html>