aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/need-list/need-list.component.html
diff options
context:
space:
mode:
authorAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-25 09:37:49 -0400
committerAkash Keshav <112591754+domesticchores@users.noreply.github.com>2025-03-25 09:37:49 -0400
commit304b867c6fa5c1192e8cdec7fd22affb50e244b3 (patch)
tree3fc1d5f5c61aa46d1b9af2e199b8061a7f5fa632 /ufund-ui/src/app/components/need-list/need-list.component.html
parent35d7c971ed47718d4dc5738edb09d62cd780dac4 (diff)
downloadJellySolutions-304b867c6fa5c1192e8cdec7fd22affb50e244b3.tar.gz
JellySolutions-304b867c6fa5c1192e8cdec7fd22affb50e244b3.tar.bz2
JellySolutions-304b867c6fa5c1192e8cdec7fd22affb50e244b3.zip
implement sorting algorithms with selection buttons. -ak
Diffstat (limited to 'ufund-ui/src/app/components/need-list/need-list.component.html')
-rw-r--r--ufund-ui/src/app/components/need-list/need-list.component.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/ufund-ui/src/app/components/need-list/need-list.component.html b/ufund-ui/src/app/components/need-list/need-list.component.html
index 36c12d0..c5faf74 100644
--- a/ufund-ui/src/app/components/need-list/need-list.component.html
+++ b/ufund-ui/src/app/components/need-list/need-list.component.html
@@ -1,4 +1,11 @@
<h1>Needs List</h1>
+<div style="display: flex;">
+ <h3>Sort by:</h3>
+ <table style="margin-left: 10px; display: flex; column-gap: 24px;">
+ <tr><h3><button (click)="changeSortAlgo('sortByName',searchForm.value)">Name(A-Z)</button></h3></tr>
+ <tr><h3><button (click)="changeSortAlgo('sortByMaxGoal',searchForm.value)">Max Goal(Descending)</button></h3></tr>
+ </table>
+</div>
<input id="search-button" type="button" value="Search" (click)="open()">
<div id="search-form">
<form #searchForm="ngForm">