diff options
author | Frederick Muriuki Muriithi | 2025-03-12 12:51:00 -0500 |
---|---|---|
committer | Frederick Muriuki Muriithi | 2025-03-12 12:51:00 -0500 |
commit | 788d27bd7d37bb87d395ee483da57581bcf48d26 (patch) | |
tree | 01f693d2ea7ee946f1223fdb31c97109a5f6403c /uploader/templates/phenotypes/view-dataset.html | |
parent | b5842a85b3277462fb1083ee22d516a085da0fea (diff) | |
download | gn-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/templates/phenotypes/view-dataset.html')
-rw-r--r-- | uploader/templates/phenotypes/view-dataset.html | 13 |
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}`; } |