File tree Expand file tree Collapse file tree 4 files changed +4
-6
lines changed
src/lib/components/generic-table
src/app/table-builder-example Expand file tree Collapse file tree 4 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " mx-table-builder" ,
3- "version" : " 0.4.27 " ,
3+ "version" : " 0.4.28 " ,
44 "peerDependencies" : {
55 "@angular/common" : " ~12.1.1" ,
66 "@angular/core" : " ~12.1.1" ,
Original file line number Diff line number Diff line change 2323
2424 < ng-container matColumnDef ="index ">
2525 < mat-header-cell *matHeaderCellDef class ="f-mat-header-cell " > #</ mat-header-cell >
26- < mat-cell *matCellDef ="let i = index; "> {{ (paginator.pageIndex * paginator.pageSize) + i + 1 }} </ mat-cell >
26+ < mat-cell *matCellDef ="let i = index; "> {{ (tbPaginator. paginator.pageIndex * tbPaginator. paginator.pageSize) + i + 1 }} </ mat-cell >
2727 < mat-footer-cell *matFooterCellDef > </ mat-footer-cell >
2828
2929 </ ng-container >
3535</ mat-table >
3636
3737< div class ="flx-row-end sticky ">
38- < tb-paginator [dataSource] ="dataSource " [tableElRef] ="tableElRef "
38+ < tb-paginator [dataSource] ="dataSource " [tableElRef] ="tableElRef " #tbPaginator
3939 [data$] ="data$ "> </ tb-paginator >
4040
4141 < mat-icon [matTooltip] ="(collapseFooter$ | async) ? 'expand' : 'collapse' " class ="collapse-icon footer " (click) ="state.toggleCollapseFooter() ">
Original file line number Diff line number Diff line change @@ -44,8 +44,6 @@ export class GenericTableComponent implements OnInit {
4444 @Input ( ) columnBuilders : ColumnBuilderComponent [ ] ;
4545
4646 @Input ( ) columnInfos : Observable < ColumnInfo [ ] > ;
47-
48- @ViewChild ( MatPaginator , { static : true } ) paginator : MatPaginator ;
4947 @ViewChild ( MatTable , { static : true } ) table : MatTable < any > ;
5048 @ViewChild ( 'table' , { read : ElementRef } ) tableElRef : ElementRef ;
5149 currentColumns : string [ ] ;
Original file line number Diff line number Diff line change 88</ div >
99
1010< tb-table-container *ngIf ='tableBuilder ' (data) ='emitter($event) ' [SaveState] ='true ' tableId ='test-table-id-123 ' #tb
11- [tableBuilder] ='tableBuilder ' [inputFilters] ='myFilter ' [pageSize] ="50 " [SelectionColumn] ='true ' (selection$) ="selectionEvent($event) ">
11+ [tableBuilder] ='tableBuilder ' [inputFilters] ='myFilter ' [pageSize] ="50 " [SelectionColumn] ='true ' (selection$) ="selectionEvent($event) " [IndexColumn] =" true " >
1212 < span [ngClass] ="(tb.state$ | async).persistedTableSettings.collapseHeader ? 'small-title' : 'big-title' "
1313 class ="tb-header-title "> TRIAL TITLE</ span >
1414 < p *customCell ="'testCell';let element = element; " [class.makeMeRed] ="element?.name && element?.name[0] === 'H' " > Hi {{element.name}}!</ p >
You can’t perform that action at this time.
0 commit comments