You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -22,6 +21,8 @@ const spreadsheet = new dhx.Spreadsheet("spreadsheet_container", {
22
21
});
23
22
~~~
24
23
24
+
- new API methods were introduced: [`freezeCols()`](api/spreadsheet_freezecols_method.md), [`unfreezeCols()`](api/spreadsheet_unfreezecols_method.md), [`freezeRows()`](api/spreadsheet_freezerows_method.md), [`unfreezeRows()`](api/spreadsheet_unfreezerows_method.md)
25
+
25
26
~~~jsx title="From v5.2"
26
27
// for rows
27
28
spreadsheet.freezeRows("B2"); // the rows up to the second row will be fixed
@@ -34,7 +35,11 @@ spreadsheet.freezeCols("B2"); // the columns up to the "B" column will be fixed
34
35
spreadsheet.freezeCols("sheet2!B2"); // the columns up to the "B" column in "sheet2" will be fixed
35
36
spreadsheet.unfreezeCols(); // fixed columns in the current sheet will be unfrozen
36
37
spreadsheet.unfreezeCols("sheet2!A1"); // fixed columns in "sheet2" will be unfrozen
38
+
~~~
39
+
40
+
- new action was added: [`toggleFreeze`](api/overview/actions_overview.md/#list-of-actions)
37
41
42
+
~~~jsx title="From v5.2"
38
43
// using the `toggleFreeze` action with the beforeAction/afterAction events
- new `freeze` property for the *sheets* object of the [`parse()`](api/spreadsheet_parse_method.md) method was added. It allows fixing rows and columns for particular sheets in the dataset, while parsing data into Spreadsheet:
58
+
59
+
~~~jsx {10-13} title="From v5.2"
60
+
constdata= {
61
+
sheets : [
62
+
{
63
+
name:"sheet 1",
64
+
id:"sheet_1",
65
+
data: [
66
+
{ cell:"A1", value:"Country" },
67
+
{ cell:"B1", value:"Product" }
68
+
],
69
+
freeze: {
70
+
col:2,
71
+
row:2
72
+
},
73
+
// more sheet settings
74
+
},
75
+
// more sheets configuration objects
76
+
]
77
+
};
78
+
79
+
spreadsheet.parse(data);
80
+
~~~
81
+
52
82
## 4.3 -> 5.0
53
83
54
84
In v5.0, the *"help"* option of the [toolbarBlocks](api/spreadsheet_toolbarblocks_config.md) property is renamed to *"helpers"*. Besides, the default set of options is extended by the new *"actions"* option.
0 commit comments