summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2022-07-26 13:25:17 -0500
committerGitHub2022-07-26 13:25:17 -0500
commitc006e7ea80879000bbfcd9ef28f660c4f16a62bf (patch)
treefa1ba22b95a5481064e062f33e64c1ca891e7df4
parent955a14909626ddb534262302942ac29c24fc7240 (diff)
downloadgn-gemtext-c006e7ea80879000bbfcd9ef28f660c4f16a62bf.tar.gz
Create generalize-tables.gmi
-rw-r--r--issues/generalize-tables.gmi29
1 files changed, 29 insertions, 0 deletions
diff --git a/issues/generalize-tables.gmi b/issues/generalize-tables.gmi
new file mode 100644
index 0000000..fa97e6c
--- /dev/null
+++ b/issues/generalize-tables.gmi
@@ -0,0 +1,29 @@
+# Enable all DataTables to call the same code
+
+# Tags
+
+* assigned: zsloan
+* priority: medium
+* type: refactor
+* status: open, in progress
+* keywords: tables, javascript
+
+# Description
+
+Currently most DataTables are drawn independently, so each separate page has its own DataTables initialization code. This results in inconsistency with features (like some tables having resizable columns and others not) and a lot of duplicated code.
+
+I'm changing this so that there's a couple files (create_datatable.js) with shared functions for initializing tables. This function takes the following parameters as input:
+tableId - the table's ID
+tableData - the table's row contents as JSON
+columnDefs - the table's column definitions - the column names, how they should be sorted, how to render their cell contents, etc (see - https://datatables.net/examples/advanced_init/column_render.html )
+customSettings - settings specific to the table in question, which can override the defaults
+
+Converted tables:
+[X] - Search Results
+[X] - Collection View
+[ ] - Collection List
+[ ] - Correlation Results
+[ ] - Global Search
+[ ] - Trait Page Sample Table
+[X] - Mapping Results
+[ ] - Interval Analyst ( might not convert this )