From ca368e32528073de15d925b4293b938f95f69dac Mon Sep 17 00:00:00 2001
From: zsloan
Date: Thu, 23 Jun 2022 20:56:37 +0000
Subject: Fix JS/CSS imports and include scroller setting in custom table
settings
---
wqflask/wqflask/templates/collections/view.html | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/wqflask/wqflask/templates/collections/view.html b/wqflask/wqflask/templates/collections/view.html
index 6ea129f9..a12c1369 100644
--- a/wqflask/wqflask/templates/collections/view.html
+++ b/wqflask/wqflask/templates/collections/view.html
@@ -3,6 +3,7 @@
{% block css %}
+
{% endblock %}
@@ -112,9 +113,8 @@
+
-
-
@@ -276,7 +276,12 @@
]
table_settings = {
- "order": [[1, "asc" ]]
+ "order": [[1, "asc" ]],
+ {% if traits_json|length > 10 %}
+ "scroller": true
+ {% else %}
+ "scroller": false
+ {% endif %}
}
create_table(table_id, traits_json, column_defs, table_settings)
--
cgit v1.2.3