@logimaxx/kgrid 0.3.1 → 0.4.0
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 +2 -1
- package/dist/kgrid.js +858 -65
- package/dist/kgrid.min.js +2 -2
- package/docs/ai-guide.md +14 -5
- package/docs/api.md +19 -3
- package/docs/configuration.md +27 -2
- package/docs/field-types.md +22 -0
- package/docs/table-shell.md +1 -0
- package/integrations/maxxops.example.js +0 -1
- package/package.json +1 -1
- package/src/cells.js +19 -1
- package/src/column-chooser.js +155 -0
- package/src/configure.js +66 -15
- package/src/constants.js +12 -1
- package/src/data-body.js +40 -30
- package/src/dom.js +40 -4
- package/src/events.js +8 -0
- package/src/filters.js +37 -2
- package/src/init.js +56 -4
- package/src/insert-row.js +14 -7
- package/src/preferences.js +404 -0
- package/styles/table.css +85 -3
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# KGrid
|
|
2
2
|
|
|
3
|
-
**KGrid** is a declarative data table (JSON configuration) built on [KViews](https://github.com/logimaxx/kviews.js). It supports filtering, sorting, paging,
|
|
3
|
+
**KGrid** is a declarative data table (JSON configuration) built on [KViews](https://github.com/logimaxx/kviews.js). It supports filtering, sorting, paging, inline create/update/delete, and user-customizable columns with persisted filters.
|
|
4
4
|
|
|
5
5
|
> **Proprietary — Logimaxx System SRL.** This repository is not open source. Use, copy, and distribution require explicit permission. See [LICENSE](LICENSE) and [NOTICE.md](NOTICE.md).
|
|
6
6
|
|
|
@@ -108,6 +108,7 @@ const grid = await KGrid.init(document.getElementById("table-host"), {
|
|
|
108
108
|
| `KGrid.hasActionColumn(opts)` | Whether a trailing row-actions column is rendered |
|
|
109
109
|
| `KGrid.registerFieldType(name, plugin)` | Custom filter/insert/update widgets |
|
|
110
110
|
| `grid.setInteraction('view' \| 'edit')` | View (data only, full width) or edit (inputs + action buttons) |
|
|
111
|
+
| `grid.getLayout()` / `setLayout()` / `resetLayout()` | Column order and user-hidden columns |
|
|
111
112
|
| `grid.instance` | KViews collection |
|
|
112
113
|
| `grid.filterForm` | Programmatic filters |
|
|
113
114
|
|