-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.html
More file actions
32 lines (29 loc) · 1.12 KB
/
basic.html
File metadata and controls
32 lines (29 loc) · 1.12 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>InfiniteTable — Basic Test</title>
<link rel="stylesheet" href="../css/infinite-table.css">
<style>
body { font-family: system-ui, sans-serif; padding: 2rem; max-width: 900px; margin: 0 auto; }
h1 { font-size: 1.4rem; font-weight: 500; margin-bottom: 1rem; }
p { color: #666; font-size: 0.9rem; margin-bottom: 1rem; }
#table-container { height: 500px; }
</style>
</head>
<body>
<h1>Basic Test — 50 rows, 4 columns</h1>
<p>Verify: table renders, headers display correctly, cells show data, alternating row colors.</p>
<div id="table-container"></div>
<script type="module">
import { createInfiniteTable } from '../src/index.js'
import { sampleColumns, sample50 } from './helpers/sampleData.js'
const table = createInfiniteTable({
container: document.getElementById('table-container'),
columns: sampleColumns
})
table.setData(sample50)
</script>
</body>
</html>