From 788d27bd7d37bb87d395ee483da57581bcf48d26 Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Wed, 12 Mar 2025 12:51:00 -0500 Subject: Use Select and Buttons extensions to DataTables for UI elements. Display the "action" buttons using the "Select" and "Buttons" extensions to DataTables. --- uploader/templates/phenotypes/view-dataset.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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}`; } -- cgit v1.2.3