@iyulab/flex-table 0.50.2 → 0.50.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.50.3] - 2026-10-06
4
+
5
+ ### Documentation
6
+
7
+ - README Quick Start looks the table up by its tag (`document.querySelector('flex-table')`), so the element is
8
+ typed in TypeScript and its `columns` / `data` are checked — `getElementById` gives a plain `HTMLElement`.
9
+
3
10
  ## [0.50.2] - 2026-10-06
4
11
 
5
12
  ### Documentation
package/README.md CHANGED
@@ -20,12 +20,12 @@ npm install @iyulab/flex-table
20
20
 
21
21
  ```html
22
22
  <!-- The table is its own scroll container, so give it a height — see Sizing below. -->
23
- <flex-table id="table" style="height: 400px" row-height="32" show-row-numbers></flex-table>
23
+ <flex-table style="height: 400px" row-height="32" show-row-numbers></flex-table>
24
24
 
25
25
  <script type="module">
26
26
  import '@iyulab/flex-table';
27
27
 
28
- const table = document.getElementById('table');
28
+ const table = document.querySelector('flex-table'); // the tag gives the element its type
29
29
 
30
30
  table.columns = [
31
31
  { key: 'name', label: 'Name', type: 'text', width: 200 },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iyulab/flex-table",
3
- "version": "0.50.2",
3
+ "version": "0.50.3",
4
4
  "description": "A minimalist, input-centric data grid web component",
5
5
  "type": "module",
6
6
  "main": "./dist/flex-table.js",