diff options
author | zsloan | 2020-11-05 15:07:58 -0600 |
---|---|---|
committer | zsloan | 2020-11-05 15:07:58 -0600 |
commit | 7932f962aff0ac35dd53b84e483f405de81c0612 (patch) | |
tree | e91cda5cc7869db136c1bd99de32f15a97bfb0c9 | |
parent | 14edb4e07a7689aac6187667064d719ecf68abbe (diff) | |
download | genenetwork2-7932f962aff0ac35dd53b84e483f405de81c0612.tar.gz |
Imported Scroller and used it with correlation page table
-rw-r--r-- | wqflask/wqflask/templates/correlation_page.html | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/wqflask/wqflask/templates/correlation_page.html b/wqflask/wqflask/templates/correlation_page.html index bc0b592c..06499ec6 100644 --- a/wqflask/wqflask/templates/correlation_page.html +++ b/wqflask/wqflask/templates/correlation_page.html @@ -215,6 +215,7 @@ <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/buttons/js/dataTables.buttons.min.js') }}"></script> <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/buttons/js/buttons.colVis.min.js') }}"></script> <script language="javascript" type="text/javascript" src="{{ url_for('js', filename='DataTablesExtensions/plugins/sorting/natural.js') }}"></script> + <script type="text/javascript" src="https://cdn.datatables.net/scroller/2.0.2/js/dataTables.scroller.min.js"></script> <script type="text/javascript" charset="utf-8"> var table_json = {{ json_results | safe }} @@ -387,8 +388,9 @@ "autoWidth": false, "deferRender": true, "bSortClasses": false, - "paging": false, - "orderClasses": true + "scrollY": "50vh", + "scroller": true, + "scrollCollapse": true } {% elif target_dataset.type == "Publish" %} @@ -438,8 +440,9 @@ "autoWidth": false, "deferRender": true, "bSortClasses": false, - "paging": false, - "orderClasses": true, + "scrollY": "50vh", + "scroller": true, + "scrollCollapse": true } {% elif target_dataset.type == "Geno" %} table_conf = { @@ -474,7 +477,10 @@ "autoWidth": false, "bDeferRender": true, "scrollY": "800px", - "scrollCollapse": false + "scrollCollapse": false, + "scrollY": "50vh", + "scroller": true, + "scrollCollapse": true } {% endif %} |