feat: add list with actions component
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import { Component, input, output } from '@angular/core';
|
||||
import { MatIconButton } from '@angular/material/button';
|
||||
import { MatIcon } from '@angular/material/icon';
|
||||
import { MatDivider, MatListModule } from '@angular/material/list';
|
||||
import { SimpleListItem } from './SimpleListItem';
|
||||
|
||||
@Component({
|
||||
selector: 'app-simple-list-w-actions',
|
||||
imports: [MatListModule, MatIcon, MatDivider, MatIconButton],
|
||||
templateUrl: './simple-list-w-actions.html',
|
||||
styleUrl: './simple-list-w-actions.scss',
|
||||
})
|
||||
export class SimpleListWActions {
|
||||
readonly action = output<{action: string, subject: string}>()
|
||||
readonly items = input<SimpleListItem[]>([])
|
||||
}
|
||||
Reference in New Issue
Block a user