eachRow

iterates over all rows in the table

void eachRow(function handler, [boolean all] );
handler
functionthe handler function that receives one parameter - the ID of the data record (row) all
booleanif 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
Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of html5 datatable product.