Insert data attribute onto table header columns
This commit is contained in:
parent
bd15fed595
commit
367c0373f9
@ -61,7 +61,7 @@ function buildTable(results) {
|
|||||||
var rows = ""
|
var rows = ""
|
||||||
|
|
||||||
results.columns.forEach(function(col) {
|
results.columns.forEach(function(col) {
|
||||||
cols += "<th>" + col + "</th>";
|
cols += "<th data='" + col + "'>" + col + "</th>";
|
||||||
});
|
});
|
||||||
|
|
||||||
results.rows.forEach(function(row) {
|
results.rows.forEach(function(row) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user