protects a cell or a range of cells from editing
row | number|object | the row id or the row and column numbers of the first cell in the range |
column | number|object | the column id or the row and column numbers of the last cell in the range |
state | boolean | true - to lock a cell, false - to unlock it (true by default) |
page | string | optional, the name of the sheet |
// locks one cell
$$("ssheet").lockCell(2, 3, true);
// locks a range of cells
$$("ssheet").lockCell({row:1, column:1}, {row:7, column:3}, true, "Sheet1");
If the cell isn't specified, the selected cell will be locked.