about summary refs log tree commit diff
path: root/uploader
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-03-12 12:51:00 -0500
committerFrederick Muriuki Muriithi2025-03-12 12:51:00 -0500
commit788d27bd7d37bb87d395ee483da57581bcf48d26 (patch)
tree01f693d2ea7ee946f1223fdb31c97109a5f6403c /uploader
parentb5842a85b3277462fb1083ee22d516a085da0fea (diff)
downloadgn-uploader-788d27bd7d37bb87d395ee483da57581bcf48d26.tar.gz
Use Select and Buttons extensions to DataTables for UI elements.
Display the "action" buttons using the "Select" and "Buttons"
extensions to DataTables.
Diffstat (limited to 'uploader')
-rw-r--r--uploader/templates/phenotypes/view-dataset.html13
1 files changed, 12 insertions, 1 deletions
diff --git a/uploader/templates/phenotypes/view-dataset.html b/uploader/templates/phenotypes/view-dataset.html
index 3ab8004..c66f76b 100644
--- a/uploader/templates/phenotypes/view-dataset.html
+++ b/uploader/templates/phenotypes/view-dataset.html
@@ -126,7 +126,18 @@
               }
           ],
           {
-              // select: true, // extension is causing trouble.
+              select: "multi+shift",
+              scrollY: "1000px",
+              layout: {
+                  topStart: {
+                      buttons: [
+                          {extend: "selectAll", className: "btn btn-info"},
+                          {extend: "selectNone", className: "btn btn-info"}
+                      ]
+                  },
+                  topEnd: "info",
+                  bottomEnd: null
+              },
               rowId: function(pheno) {
                   return `${pheno.InbredSetCode}_${pheno.xref_id}`;
               }