@guiexpert/table 1.1.109 → 1.1.110

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/README.md CHANGED
@@ -79,6 +79,10 @@ This is the UI-agnostic table component for your next web app. 😊
79
79
  - Customizable Look & Feel (via CSS variables)
80
80
  - Row sorting
81
81
  - Column Reordering (Drag and Drop)
82
+ - Column drag events and locks: `onColumnResizeEnd` / `onColumnMoveEnd` once per drag (after the change – save the
83
+ layout there), `ColumnDef.resizable: false` / `movable: false` per column, a column stays in its fixed area, a double
84
+ click on the resize handle fits the width (`columnAutoWidth`, `tableApi.autoResizeColumn()`, flat with millions of
85
+ rows) – since 1.1.110
82
86
  - State persistence: column layout (width, order, visibility), sorting, scroll position, tree, checked and selected
83
87
  rows, header groups – in `localStorage` (`autoRestoreOptions`) or on your server (`tableApi.getState()` /
84
88
  `applyState()`, `initialState`, `onStateChanged`); stored by property and row id, never by index – since 1.1.92
@@ -102,6 +106,9 @@ This is the UI-agnostic table component for your next web app. 😊
102
106
  - **Own keys** (Delete, Enter): `keydown` on the host + `tableApi.getActiveCell()` – there is no keyboard event.
103
107
  - **Selected rows:** `selectionModel.getMergedRowIndices(n)` → `tableApi.getBodyModel().getRowByIndex(i)` (pass your own
104
108
  `SelectionModel` – the default type is `"none"`).
109
+ - **Save the column layout when the user drags a column:** `onColumnResizeEnd` / `onColumnMoveEnd` (wrappers
110
+ `columnResizeEnd`, `columnMoveEnd`) – once per drag, after the change, only for the user (since 1.1.110). Lock one
111
+ column: `ColumnDef.resizable: false`, `movable: false`.
105
112
  - **AI assistants:** `llms.txt` in this package – recipes and pitfalls, every snippet compiled against the API.
106
113
  - **Nothing visible?** The host div needs a fixed height and the stylesheet `@guiexpert/table/css/main.css`.
107
114