File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -15,21 +15,20 @@ import { Observable } from "rxjs";
1515 <button
1616 class="cds--table-expand__button"
1717 [attr.aria-label]="getAriaLabel() | async"
18- (click)="change.emit(!allRowsExpanded)"
19- >
18+ (click)="expandedChange.emit(!expanded)">
2019 <svg cdsIcon="chevron--right" size="16" class="cds--table-expand__svg"></svg>
2120 </button>
2221 `
2322} )
2423export class TableHeadExpand {
2524 @HostBinding ( "class.cds--table-expand" ) hostClass = true ;
2625
27- @Input ( ) allRowsExpanded = false ;
26+ @Input ( ) expanded = false ;
2827
29- @Output ( ) change = new EventEmitter < boolean > ( ) ;
28+ @Output ( ) expandedChange = new EventEmitter < boolean > ( ) ;
3029
3130 @HostBinding ( "attr.data-previous-value" ) get previousValue ( ) {
32- return this . allRowsExpanded ? "collapsed" : null ;
31+ return this . expanded ? "collapsed" : null ;
3332 }
3433
3534 protected _ariaLabel = this . i18n . getOverridable ( "TABLE.EXPAND_ALL_BUTTON" ) ;
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ import { TableRowSize } from "../table.types";
3333 scope="col"
3434 [ngClass]="{'cds--table-expand-v2': stickyHeader}"
3535 [id]="model.getId('expand')"
36- [allRowsExpanded ]="model.expandableRowsCount() === model.expandedRowsCount()"
37- (change )="onExpandAllRowsChange($event)">
36+ [expanded ]="model.expandableRowsCount() === model.expandedRowsCount()"
37+ (expandedChange )="onExpandAllRowsChange($event)">
3838 </th>
3939 <th
4040 *ngIf="!skeleton && showSelectionColumn && enableSingleSelect"
You can’t perform that action at this time.
0 commit comments