On this page
Loading...
~4.7.7
To add custom column header template with a *`labelTemplateName`*:
1. HTML: add `ng-template` with `cTemplateId="columnLabel_`*`labelTemplateName`*`"` and `let-column` template variable
2. TypeScript: define `IColumns[]` config with `_labelTemplateId` and optional `_data`
---
~5.2.19
---
~4.5.26
you can pass an ng-template with `cTemplateId="tableSummaryRow"` as a c-smart-table content.
- Style `tr` and `th` elements according to your needs. Display any data you want.
---
4.5.26+
| name | description | type |
| ---- | ----------- | ---- |
| `activePageChange` | Event emitted on `activePage` change | `number` |
| `columnFilterValueChange` | Event emitted on `columnFilterValue` change | |
| `filteredItemsChange` | Event emitted on `filteredItems` change | |
| `itemsPerPageChange` | Event emitted on `itemsPerPage` change | |
| `rowClick` | Event emitted on row click | |
| `selectedItemsChange` | Event emitted on `selectedItems` change | |
| `sorterValueChange` | Event emitted on `sorterValue` change | |
| `tableFilterValueChange` | Event emitted on `tableFilterValue` change | |
## Templates
You can pass an ng-template with cTemplateId as a c-smart-table content.
Available templates with [cTemplateId] names:
- `tableCustomHeader` ( ~4.4.5
goes to the header row with table filter/cleaner)
- `tableData` (goes to `td` html element for specified `columnName`)
- `tableDetails` (goes to separate row as row details, for every `tr`)
- `tableSummaryRow` ( ~4.5.26
goes to the table footer)
- `columnFilter_*` (see: [Custom Filters](components/smart-table#custom-filters))
- `columnLabel_*` (~4.7.7
see: [Custom Headers](components/smart-table#custom-headers))