eachDataRow method
eachDataRow(callback)
Method used to loop through data rows for this object. Only rows available client side will be used.
Returns
Returns an array of NxCell.
Tip noteFor more information regarding a promise, see http://docs.angularjs.org/api/ng.$q.
Parameters
| Name | Type | Description |
|---|---|---|
| callback | Function |
Function to call for each row. Parameters are row number and row data as an array of NxCell objects. The loop is terminated if the function returns false. |
Example
this.backendApi.eachDataRow(function(rownum, row) {
html += '<li ' + style + ' class="state' + row[0].qState + '" data-value="' +
row[0].qElemNumber + '">' + row[0].qText;
if(row[0].qFrequency) {
html += '<span>' + row[0].qFrequency + '</span>';
}
html += '</li>';
});