Skip to content

Commit c74ca6f

Browse files
author
Victory
committed
[update] docs
1 parent e5fc25a commit c74ca6f

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

docs/api/spreadsheet_sortcells_method.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ sortCells(cell: string, dir: number): void;
1818

1919
### Parameters
2020

21-
- `cell` - (required) a range of cells by which you want the data in the spreadsheet to be sorted
21+
- `cell` - (required) the id(s) of a cell(s) or a range of cells by which you want the data in the spreadsheet to be sorted
2222
- `dir` - (required) the direction of sorting:
2323
- 1 - ascending order
2424
- -1 - descending order
@@ -33,8 +33,8 @@ const spreadsheet = new dhx.Spreadsheet("spreadsheet", {
3333
// sorts data on the first sheet
3434
spreadsheet.sortCells("B2:B11", -1);
3535

36-
// sorts data on the Income sheet
37-
spreadsheet.sortCells("Income!B2:B11", 1);
36+
// sorts data on several sheets
37+
spreadsheet.sortCells("Income!B2:B11, Report!B2:B11, Expenses!C2:C11", 1);
3838
~~~
3939

4040
:::info

docs/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ description: You can have an overview of the JavaScript Spreadsheet library in t
99

1010
DHTMLX Spreadsheet is a client-side JavaScript component that allows editing and formatting data in spreadsheets online. It includes a configurable toolbar, handy menu and context menu, and adjustable grid, supports hot keys navigation, loads data both from external and local sources, provides the ability to localize interface into the desired language.
1111

12-
{{note There is a [User Guide](guides.md/#user-guide) provided to make work with Spreadsheet easy for your end users.}}
12+
:::tip
13+
There is a [User Guide](guides.md/#user-guide) provided to make work with Spreadsheet easy for your end users
14+
:::
1315

1416
## Spreadsheet structure
1517

docs/migration.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ description: You can learn about migration in the documentation of the DHTMLX Ja
88

99
## 4.2 -> 4.3
1010

11+
:::info
12+
Version 4.3 is the last version which provides IE support
13+
:::
14+
1115
Version 4.3 brings a new conception of tracking and handling the actions which are performed when you change something in the spreadsheet.
1216

1317
The new [beforeAction](api/spreadsheet_beforeaction_event.md) and [afterAction](api/spreadsheet_afteraction_event.md) events will fire right before / after an action is executed and indicate which action has been performed. Thus, the new approach allows you to add the necessary logic for several actions at once via using only these two events. For instance:

docs/working_with_ssheet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ var focused = spreadsheet.selection.getFocusedCell(); // -> "D4"
296296
## Sorting data
297297

298298
From v4.3, you can sort data in the spreadsheet via the [sortCells()](api/spreadsheet_sortcells_method.md) method. Pass to the method two parameters:
299-
- `cell` - a range of cells by which you want the data in the spreadsheet to be sorted
299+
- `cell` - the id(s) of a cell(s) or a range of cells by which you want the data in the spreadsheet to be sorted
300300
- `dir` - the sorting direction: 1 - ascending sort order, -1 - descending sort order
301301

302302
~~~jsx {5}

0 commit comments

Comments
 (0)