<mat-menu #appMenu="matMenu" yPosition="above">
<button mat-menu-item>Settings</button>
<button mat-menu-item>Help</button>
</mat-menu>
<button mat-icon-button [matMenuTriggerFor]="appMenu">
<mat-icon>more_vert</mat-icon>
</button>
I want on click of more_vert icon, mat-menu should open on top of it. and an icon should be added on right corner of mat-menu
In this image the right top corner should be an icon and placed on top of more_vert icon.
Can anyone please help me how to do this.
Added code for table. As mat-menu is present in table data.
<table class="table">
<thead>
<tr>
<th>Data 1
</th>
<th>Data 2
</th>
<th>Data 3
</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let data of Data</td>
<td>
{{data.val1}}
</td>
<td>
{{data.val2}}
</td>
<td>
<mat-menu #appMenu="matMenu">
<mat-icon>close</mat-icon>
<button mat-menu-item>Settings</button>
<button mat-menu-item>Help</button>
</mat-menu>
<button mat-icon-button [matMenuTriggerFor]="appMenu">
<mat-icon>more_vert</mat-icon>
</button>
</td>
</tr>
</tbody>
</table>