This commit is contained in:
2020-01-29 22:11:01 +00:00
parent 13dbd58afa
commit 71f0ca1e23

View File

@@ -250,7 +250,20 @@ async function fetchLocalizedHeaderNames(columnData) {
//Called by getDataFromApi on retrieval of list with columnData
function buildRecords(listData) {
//iterate data, build each object keyed with index name and then return
//iterate data, build each object keyed with index name and display set to correct locale filter and then return
if (!listData) {
return;
}
var ret = [];
//comes as an array of arrays, needs to leave as an array of objects representing each row
for (var iRow = 0; iRow < listData.length; iRow++) {
var row = listData[iRow];
//iterate row and build object representing row data keyed to index
//first column is the default column so skip over it for now
for (var iColumn = 1; iColumn < listData.length; iColumn++) {
var column = row[iColumn];
}
}
}
//DataTable component