eachRow

iterates over all rows in the table

void eachRow(function handler, [boolean all] );
handlerfunctionthe handler function that receives one parameter - the ID of the data record (row)
allbooleanif true, hidden rows are included into a loop

Example

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);
});

Details
  • Basically, the order of iteration is the order in which rows were added to the table, but not necessarily so.
  • If you apply filtering to the table, only visible rows will be iterated. To iterate all rows, set the all parameter to true.
Back to top
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of html5 datatable product.