aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.ts
diff options
context:
space:
mode:
authorsowgro <tpoke.ferrari@gmail.com>2025-04-03 23:11:05 -0400
committersowgro <tpoke.ferrari@gmail.com>2025-04-03 23:11:05 -0400
commit6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8 (patch)
tree15511941490e8010dacaf20c704f9b314da5634b /ufund-ui/src/app/components/need-list/need-list.component.ts
parentad651c44ce2515d497c8e5214147c69126e25903 (diff)
downloadJellySolutions-6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8.tar.gz
JellySolutions-6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8.tar.bz2
JellySolutions-6a5033afc3c8e0d5d12d709b35b306b6ea1f70e8.zip
Implemented action buttons with ng-template!!!
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.ts')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.ts b/ufund-ui/src/app/components/need-list/need-list.component.ts
index cd7debb..7e5c3f4 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.ts
+++ b/ufund-ui/src/app/components/need-list/need-list.component.ts
@@ -1,6 +1,5 @@
-import {Component, Input, OnChanges, OnInit} from '@angular/core';
+import {Component, Input, OnChanges, TemplateRef} from '@angular/core';
import {Need} from '../../models/Need';
-import {Observable} from 'rxjs';
@Component({
selector: 'app-need-list',
@@ -12,6 +11,7 @@ export class NeedListComponent implements OnChanges {
@Input({required: true}) needs!: Need[]
@Input() itemsPerPage: number = 5;
+ @Input() actionArea: TemplateRef<any> | null = null
visibleNeeds: Need[] = [];
currentPage: number = 0;