Hi,
i have a mat-table like below
cloud_download "listData" matSort class="mat-elevation-z8" matTableExporter #exporter="matTableExporter">
"groupid" >GroupID "let element"> {{element.GroupID}} "groupname" >GroupName "let element"> {{element.GroupName}} "username" >UserName "let element"> {{element.UserName}} "Action" >"let row"> class="button-row">- style="margin-right: 0px;margin-bottom: 0px;width: 30px;height: 30px; line-height: unset;"
- (click)="onEdit(row, 'EDIT')" *ngIf="editbtnvisible">
"font-size:20px;" >edit_outline- style="margin-right: 0px;margin-bottom: 0px;width: 30px;height: 30px; line-height: unset;"
- (click)="onDelete(row)" *ngIf="deletebtnvisible">
"font-size:20px;" >delete_outline- style="margin-right: 0px;margin-bottom: 0px;width: 30px;height: 30px; line-height: unset;"
- (click)="onEdit(row.ApproverGroupID, 'VIEW')" *ngIf="viewbtnvisible">
"font-size:20px;" >search"loading" >"6"> - Loading Data...
"noData" >"6"> - No data.
"displayedColumns; sticky: true"> "let row; columns: displayedColumns;"> "['loading']" [ngClass]="{'hide':listData!=null}"> "['noData']" [ngClass]="{'hide':!(listData!=null && listData.data.length==0)}">
Am using matTableExporter to export table data into excel. The data's are exporting into excel with extra action column and last row as 'LoadingData' and 'No Data'.
How to skip the action button column and last two row 'LoadingData' and 'No Data'
Please guide me
Thanks
Andrea TosiPosted Dec 16, 2020, 8:25 AM