Add selectionHeaderRenderer hook and make the width of the selection checkbox column configurable.

This commit is contained in:
2026-06-24 10:13:36 +02:00
parent 3b5245ce84
commit 86d5a507eb
4 changed files with 24 additions and 3 deletions
+6
View File
@@ -19,4 +19,10 @@ Each column object has the following properties:
To override the default table column headers you can override the `renderColumnHeader(column, idx)` method.
To override only the selection header, provide a `selectionHeaderRenderer` function property. Return `null` or `undefined` to use the default select-all checkbox.
To override the default cell elements you can override the `renderItem(item, idx, columns, selected)` method.
## Styling
- `--tp-table-checkbox-column-width`: Width of the checkbox selection column. Defaults to `40px`.