freezes the rows up to the specified one at runtime, starting from the first one
| row | number | optional, the id of the last row to freeze |
| page | string | optional, the name of the sheet |
// freezes rows 1-3
$$("ssheet").freezeRows(3, "Sheet1");
If you pass 0, or the id of the row up to which the rows are already frozen, the method unfreezes the rows:
// unfreezes the rows
$$("ssheet").freezeRows(0, "Sheet1");
If you don't pass the row parameter, the method freezes the rows up to the last row of the selected area of the active sheet. If no cells are selected, the method unfreezes the rows.
// freezes the rows up to the last row of the selected area
$$("ssheet").freezeRows();