I have a material table in following structure: <table mat-table #mailBox [dataSource]="inboxTableDataSource" class="mat-elevation-z8 demo-table">