aboutsummaryrefslogtreecommitdiff
path: root/uploader/static/js/populations.js
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-07-01 11:59:05 -0500
committerFrederick Muriuki Muriithi2025-07-01 11:59:05 -0500
commit151358c5fcc8771f558f93497e6ae88bfa708294 (patch)
tree69c956b7038de4d90a6f9d9c7df2821cdaaed129 /uploader/static/js/populations.js
parent6042b313019815c8bc7be552c4e111ccc224c9a7 (diff)
downloadgn-uploader-151358c5fcc8771f558f93497e6ae88bfa708294.tar.gz
Enable scrolling and paging for both species and populations.
Diffstat (limited to 'uploader/static/js/populations.js')
-rw-r--r--uploader/static/js/populations.js17
1 files changed, 16 insertions, 1 deletions
diff --git a/uploader/static/js/populations.js b/uploader/static/js/populations.js
index be1231f..89ededa 100644
--- a/uploader/static/js/populations.js
+++ b/uploader/static/js/populations.js
@@ -13,9 +13,24 @@ $(() => {
}
},
{
+ searchable: true,
data: (apopulation) => {
return `${apopulation.FullName} (${apopulation.InbredSetName})`;
}
}
- ]);
+ ],
+ {
+ select: "single",
+ paging: true,
+ scrollY: 700,
+ deferRender: true,
+ scroller: true,
+ scrollCollapse: true,
+ layout: {
+ topStart: "info",
+ topEnd: "search",
+ bottomStart: "pageLength",
+ bottomEnd: false
+ }
+ });
});