Skip to content

Commit 7574ff4

Browse files
committed
add examples viewer
1 parent aaf92ff commit 7574ff4

File tree

8 files changed

+1352
-3
lines changed

8 files changed

+1352
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
node_modules
2+
.cache
23
dist
3-
out
4+
public
45
*.d.ts
56
*.metadata.json
67
*.bat

css/esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
import '@activewidgets/datagrid/css/index.css';
2+
import '@activewidgets/datagrid/css';

css/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11

2-
require('@activewidgets/datagrid/css/index.css');
2+
require('@activewidgets/datagrid/css');

examples/index.html

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<style>
5+
6+
* {
7+
box-sizing: border-box;
8+
}
9+
10+
html, body, #app {
11+
width: 100%;
12+
height: 100%;
13+
padding: 20px;
14+
margin: 0;
15+
box-sizing: border-box;
16+
font-family: "Segoe UI", "Helvetica Neue";
17+
font-size: 13px;
18+
}
19+
20+
.ax-headers-view {
21+
font-weight: bold;
22+
color: #666;
23+
border-bottom: 1px solid #aaa;
24+
}
25+
26+
.ax-gridlines {
27+
border-bottom: 1px solid #eee;
28+
}
29+
30+
.ax-row.selected {
31+
background: #f7eeff77;
32+
}
33+
34+
.menu-header {
35+
line-height: 2em;
36+
}
37+
38+
.menu-item {
39+
line-height: 1.5em;
40+
text-indent: 2em;
41+
}
42+
43+
</style>
44+
</head>
45+
<body>
46+
<div id="app">Loading...</div>
47+
<script src="./viewer.js"></script>
48+
</body>
49+
</html>

examples/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+

2+
export * from '@activewidgets/datagrid/examples';

0 commit comments

Comments
 (0)