Add comment to help designers understand TreeData (#2715)

This commit is contained in:
Thad Guidry 2020-06-14 03:11:51 -05:00 committed by GitHub
parent 686315b0c3
commit e8f9c7d065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -233,7 +233,10 @@ DataTableView.prototype._renderDataTables = function(table, headerTable) {
$(td).html(' '); $(td).html(' ');
} else { } else {
for (var k = 0; k < keys.length; k++) { for (var k = 0; k < keys.length; k++) {
if (c == keys[k]) { // if a node is a key in the tree-based data (JSON/XML/etc), then also display a dropdown arrow (non-functional currently)
// See https://github.com/OpenRefine/OpenRefine/blob/master/main/src/com/google/refine/model/ColumnGroup.java
// and https://github.com/OpenRefine/OpenRefine/tree/master/main/src/com/google/refine/importers/tree
if (c == keys[k]) {
$('<img />').attr("src", "../images/down-arrow.png").appendTo(td); $('<img />').attr("src", "../images/down-arrow.png").appendTo(td);
break; break;
} }