Skip to content

Commit 28f62e5

Browse files
chore: bindings renamed
1 parent 5864767 commit 28f62e5

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

src/table/head/table-head-expand.component.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff 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
})
2423
export 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");

src/table/head/table-head.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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"

0 commit comments

Comments
 (0)