Stuff
public text v1 · immutable/* Remove a row */
DefaultGridModel.prototype.removeRow = function(rowIndex) {
this.data.splice(rowIndex, 1);
this.fireRowRemoved(rowIndex);
this.rowCount--;
}
/* Remove a row by the value in a specific column */
DefaultGridMode.prototype.removeRowByValue = function(columnIndex, value) {
for(var rowIndex = 0; rowIndex < this.rowCount; rowIndex++) {
if(data[rowIndex][columnIndex] == value) {
this.removeRow(rowIndex);
rowIndex--;
}
}
}