GcSpread.Sheets Namespace > Sheet type : getInsertRows Method |
var instance = new GcSpread.Sheets.Sheet(name); var value; // Type: Array value = instance.getInsertRows();
function getInsertRows() : Array;
The following values can be returned:
row.row | number type | Specifies row index. |
row.item | object type | Specifies data item of the row. |
activeSheet.getRow(0).backColor("Red"); activeSheet.setValue(0, 0, "value"); activeSheet.addRows(0, 1); $("#button1").click(function () { var insertRows = activeSheet.getInsertRows(); var len = insertRows.length; for(var i = 0; i < len; i++){ var r = insertRows[i]; alert("rowIndex:" + r.row); } }); // Add button control to page <input type="button" id="button1" value="button1"/>