Skip to content

Commit 103138c

Browse files
committed
hotfix: added input for aggregateName for cross-table
1 parent e3955a3 commit 103138c

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

src/app/components/body/cross-tabulation/cross-table/cross-table.component.ts

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ export class CrossTableComponent {
3333
cols = input.required<string[]>();
3434
hasData = input.required<boolean>();
3535
selectedViewOption = input<string>('Count');
36+
aggregatorName = input.required<string>();
3637
element: ElementRef = inject(ElementRef);
3738

38-
constructor(private liveAnnouncer: LiveAnnouncer, private translate: TranslateService) {
39+
constructor(
40+
private liveAnnouncer: LiveAnnouncer,
41+
private translate: TranslateService,
42+
) {
3943
effect(() => {
4044
if (this.data() && (this.rows() || this.cols())) {
4145
this.createTable();
@@ -73,10 +77,14 @@ export class CrossTableComponent {
7377
rendererName: 'Table',
7478
showUI: false,
7579
});
76-
let txt: string = "";
77-
this.translate.get("CROSS_TABULATION.TABLE_MESSAGE").subscribe((res: string) => {
78-
txt = res;
79-
});
80-
setTimeout(() => {this.liveAnnouncer.announce(txt);},2000);
80+
let txt: string = '';
81+
this.translate
82+
.get('CROSS_TABULATION.TABLE_MESSAGE')
83+
.subscribe((res: string) => {
84+
txt = res;
85+
});
86+
setTimeout(() => {
87+
this.liveAnnouncer.announce(txt);
88+
}, 2000);
8189
}
8290
}

0 commit comments

Comments
 (0)