Open artvitk opened 7 years ago
I'm submitting a ...
[x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter
Current behavior
Looks like values in cellContext property of DataTableHeaderCellComponent are never updated after component initialization. https://github.com/swimlane/ngx-datatable/blob/a8d3e26c868964d5b1533508930d754172543cb4/src/components/header/header-cell.component.ts#L149-L155 For example, if selectionType is 'checkbox' and all rows are selected manually then checkbox in header isn't checked.
cellContext
DataTableHeaderCellComponent
Expected behavior
cellContext should be updated when input properties of DataTableHeaderCellComponent are updated
Reproduction of the problem http://plnkr.co/edit/gKXQhgYxQ9HbpNMfb3NQ?p=preview
What is the motivation / use case for changing the behavior?
allRowsSelected in custom template should be updated
allRowsSelected
Please tell us about your environment:
Windows 10, npm, webpack
Table version: 10.2.1
Angular version: 4.3.6
Browser: all
Language: TypeScript 2.4.2
Led to #935.
I have the same question...Have you settled it yet? @artvitk
@ReneeFeng I still use 9.3.1 version
I'm submitting a ...
Current behavior
Looks like values in
cellContext
property ofDataTableHeaderCellComponent
are never updated after component initialization. https://github.com/swimlane/ngx-datatable/blob/a8d3e26c868964d5b1533508930d754172543cb4/src/components/header/header-cell.component.ts#L149-L155 For example, if selectionType is 'checkbox' and all rows are selected manually then checkbox in header isn't checked.Expected behavior
cellContext
should be updated when input properties ofDataTableHeaderCellComponent
are updatedReproduction of the problem http://plnkr.co/edit/gKXQhgYxQ9HbpNMfb3NQ?p=preview
What is the motivation / use case for changing the behavior?
allRowsSelected
in custom template should be updatedPlease tell us about your environment:
Windows 10, npm, webpack
Table version: 10.2.1
Angular version: 4.3.6
Browser: all
Language: TypeScript 2.4.2