freezes the columns up to the specified one at runtime, starting from the leftmost one
| column | number | optional, the id of the last column to freeze |
| page | string | optional, the name of the sheet |
// freezes columns A and B
$$("ssheet").freezeColumns(2, "Sheet1");
If you pass 0, or the id of the column up to which the columns are already frozen, the method unfreezes the columns:
// unfreezes the columns
$$("ssheet").freezeColumns(0, "Sheet1");
If you don't pass the column parameter, the method freezes the columns up to the last column of the selected area of the active sheet. If no cells are selected, the method unfreezes the columns.
// freezes the columns up to the last column of the selected area
$$("ssheet").freezeColumns();