iterates over all rows in the table
handler | function | the handler function that receives one parameter - the ID of the data record (row) |
all | boolean | if true, hidden rows are included into a loop |
dtable.eachRow(function(row){
const record = dtable.getItem(row);
// { id:row, title:"Film", year:2019 }
record.title += " (" + record.year +")";
delete record.year;
this.updateItem(row, record);
});