Add selectionHeaderRenderer hook and make the width of the selection checkbox column configurable.
This commit is contained in:
@@ -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`.
|
||||
|
||||
Reference in New Issue
Block a user