feat: add list with actions component

This commit is contained in:
2026-01-29 20:57:26 -03:00
parent 4397e5fec3
commit ae249ea828
6 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<mat-list>
@for (item of items(); track item.id) {
<mat-list-item>
{{ item.text }}
@if (item.actions; as actions) {
<div matListItemMeta>
@for (action of actions; track action.action) {
<button matIconButton (click)="this.action.emit({action: action.action, subject: item.id})">
<mat-icon>{{ action.icon }}</mat-icon>
</button>
}
</div>
}
</mat-list-item>
<mat-divider></mat-divider>
}
</mat-list>