diff --git a/projects/components/package.json b/projects/components/package.json index fd39a1d..9340ffa 100644 --- a/projects/components/package.json +++ b/projects/components/package.json @@ -1,6 +1,6 @@ { "name": "@bolzplatzarena/components", - "version": "0.9.0", + "version": "0.9.1", "author": "Thomas Renger", "repository": { "type": "git", diff --git a/projects/components/src/lib/components/table/inner-table/inner-table.component.html b/projects/components/src/lib/components/table/inner-table/inner-table.component.html index e90738e..d636148 100644 --- a/projects/components/src/lib/components/table/inner-table/inner-table.component.html +++ b/projects/components/src/lib/components/table/inner-table/inner-table.component.html @@ -32,7 +32,7 @@ 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}`); } }