You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit de8343b
Browse filesBrowse the repository at this point in the historyBrowse files
refactor: make datatable group-header query an internal signal
Convert `groupHeader` to a protected `contentChild` signal.
Export the directive as `ngxDatatableGroupHeader` and update examples
to call its methods directly.
BREAKING CHANGE: `DatatableComponent.groupHeader` is no longer public.
Use a template reference to `DatatableGroupHeaderDirective` instead.
Before:
```html
<button (click)="table.groupHeader!.toggleExpandGroup(group)">Toggle</button>
```
After:
```html
<ngx-datatable>
<ngx-datatable-group-header #header="ngxDatatableGroupHeader">
<ng-template ngx-datatable-group-header-template let-group="group">
<button (click)="header.toggleExpandGroup(group)">Toggle</button>
</ng-template>
</ngx-datatable-group-header>
</ngx-datatable>
```
Use the same reference for `expandAllGroups()` and `collapseAllGroups()`.
0 commit comments