File tree Expand file tree Collapse file tree
src/app/components/body/cross-tabulation/cross-table Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments