feat: add list with actions component
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user