diff --git a/src/app/components/table/table.component.html b/src/app/components/table/table.component.html index 62a17c2..60f09b8 100644 --- a/src/app/components/table/table.component.html +++ b/src/app/components/table/table.component.html @@ -12,8 +12,8 @@

content.headline.static_data

[columns]="['name', 'level', 'type', 'health', 'birthday']" [dataset]="data" [pageSizeOptions]="[7, 14, 21]" - (deleteEvent)="die()" - (editEvent)="view()" + (deleteEvent)="die($event)" + (editEvent)="view($event)" translateKey="hero.components.hero-list."> @@ -26,8 +26,8 @@

content.headline.no_paging

[dataset]="data" [pageSizeOptions]="[7, 14, 21]" [paging]="false" - (deleteEvent)="die()" - (editEvent)="view()" + (deleteEvent)="die($event)" + (editEvent)="view($event)" translateKey="hero.components.hero-list."> @@ -37,8 +37,8 @@

content.headline.observables

[columns]="['name', 'level', 'type', 'health', 'birthday', 'custom']" [dataset]="data$ | async" progressBar="always" - (deleteEvent)="die()" - (editEvent)="view()" + (deleteEvent)="die($event)" + (editEvent)="view($event)" translateKey="hero.components.hero-list.">

content.headline.options

diff --git a/src/app/components/table/table.component.ts b/src/app/components/table/table.component.ts index 8f57afc..adc8d39 100644 --- a/src/app/components/table/table.component.ts +++ b/src/app/components/table/table.component.ts @@ -114,11 +114,11 @@ export class TableComponent { takeUntilDestroyed(), ); - protected die(): void { - alert('Die'); + protected die(hero: Hero): void { + alert(`Die: ${hero.name}`); } - protected view(): void { - alert('View'); + protected view(hero: Hero): void { + alert(`View: ${hero.name}`); } }