Skip to content

Commit 613d1f1

Browse files
committed
[update] improve what's new for v6.0
- add links to related pages for all new functionality, updates entries - fix Usage code blocks in Sheet Manager API pages (jsx -> ts) - improve wording: fix "via API", awaitRedraw description, sheet name escaping, dynamic array fix description - make font size sub-items consistent
1 parent 2e5cbad commit 613d1f1

10 files changed

Lines changed: 26 additions & 26 deletions

docs/api/sheetmanager_add_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ To apply this method, you need to enable the [multiSheets](api/spreadsheet_multi
1818

1919
### Usage
2020

21-
~~~jsx
21+
~~~ts
2222
add: (name?: string) => Id;
2323
~~~
2424

docs/api/sheetmanager_clear_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ If no id is provided, the currently active sheet is cleared.
1414

1515
### Usage
1616

17-
~~~jsx
17+
~~~ts
1818
clear: (id?: Id) => void;
1919
~~~
2020

docs/api/sheetmanager_get_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: You can learn about the get method of the Sheet Manager in the docu
1212

1313
### Usage
1414

15-
~~~jsx
15+
~~~ts
1616
get: (id: Id) => ISheet;
1717
~~~
1818

docs/api/sheetmanager_getactive_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: You can learn about the getActive method of the Sheet Manager in th
1212

1313
### Usage
1414

15-
~~~jsx
15+
~~~ts
1616
getActive: () => ISheet;
1717
~~~
1818

docs/api/sheetmanager_getall_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Each sheet object contains the sheet's id and name.
1616

1717
### Usage
1818

19-
~~~jsx
19+
~~~ts
2020
getAll: () => ISheet[];
2121
~~~
2222

docs/api/sheetmanager_remove_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Also note, that a sheet won't be deleted if the number of sheets in the spreadsh
2020

2121
### Usage
2222

23-
~~~jsx
23+
~~~ts
2424
remove: (id: Id) => void;
2525
~~~
2626

docs/api/sheetmanager_setactive_method.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The spreadsheet UI will re-render to display the target sheet's contents.
1414

1515
### Usage
1616

17-
~~~jsx
17+
~~~ts
1818
setActive: (id: Id) => void;
1919
~~~
2020

docs/api/spreadsheet_addformula_method.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Once registered, the formula is available in any cell by its uppercase name (e.g
1414

1515
### Usage
1616

17-
~~~jsx
17+
~~~ts
1818
type cellValue = string | number | boolean
1919
type mathArgument = cellValue | cellValue[];
2020
type mathFunction = (...x: mathArgument[]) => cellValue;
@@ -25,7 +25,7 @@ addFormula: (name: string, handler: mathFunction) => void;
2525
### Parameters
2626

2727
- `name` - (*string*) required, the formula name (case-insensitive, stored as uppercase)
28-
- `handler` - (*mathFunction*) required, a callback function that processes the input arguments (strings, numbers, booleans, or arrays of these) and returns a single value
28+
- `handler` - (*function*) required, a callback function that processes the input arguments (strings, numbers, booleans, or arrays of these) and returns a single value
2929

3030
:::note
3131
The `handler` callback function must be synchronous. Using `Promise` or `fetch` inside the function is not allowed.

docs/react/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ The official declarative React wrapper for DHTMLX Spreadsheet. Build spreadsheet
1313
- [Installation](/react/installation/) - install the evaluation or commercial package
1414
- [Quick start](/react/quick-start/) - build your first spreadsheet app step by step
1515

16-
You can also explore the [GitHub demo repository](https://github.com/DHTMLX/react-spreadsheet-demo) for a complete working example.
16+
:::info
17+
You can also explore the [GitHub demo repository](https://github.com/DHTMLX/react-spreadsheet-examples) for a complete working example.
18+
:::
1719

1820
## API reference
1921

docs/whats_new.md

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,32 +20,30 @@ The new release introduces significant changes in the Spreadsheet API: there is
2020

2121
### New functionality
2222

23-
- The `ISheetManager` module is introduced. It is a centralized API for managing sheets in Spreadsheet. It is accessible via the `spreadsheet.sheets` property and replaces all the deprecated sheet-related methods on the root `ISpreadsheet` instance.
24-
- new methods: `sheets.add`, `sheets.remove`, `sheets.getAll`, `sheets.getActive`, `sheets.setActive`, `sheets.clear`, `sheets.get`
25-
- React Spreadsheet wrapper is introduced
26-
- The ability to specify a custom (user-defined) formula
27-
- The ability to display numbers in the scientific (exponential) notation
28-
23+
- [React Spreadsheet wrapper](/react/) is introduced. Check related examples in the [GitHub demo repository](https://github.com/DHTMLX/react-spreadsheet-examples)
24+
- The [`ISheetManager`](/api/overview/sheetmanager_overview/) module is introduced. It is a centralized API for managing sheets in Spreadsheet. It is accessible via the `spreadsheet.sheets` property and replaces all the [deprecated sheet-related methods](/migration/#deprecated-methods) on the root `ISpreadsheet` instance.
25+
- new methods: [`sheets.add()`](/api/sheetmanager_add_method/), [`sheets.remove()`](/api/sheetmanager_remove_method/), [`sheets.getAll()`](/api/sheetmanager_getall_method/), [`sheets.getActive()`](/api/sheetmanager_getactive_method/), [`sheets.setActive()`](/api/sheetmanager_setactive_method/), [`sheets.clear()`](/api/sheetmanager_clear_method/), [`sheets.get()`](/api/sheetmanager_get_method/)
26+
- The ability to specify a [custom (user-defined) formula](/functions/#custom-formulas) via the new [`addFormula()`](/api/spreadsheet_addformula_method/) method
27+
- The ability to display numbers in the [scientific (exponential) notation](/number_formatting/#scientific-number-format)
2928

3029
### Updates
3130

32-
- The ability to adjust the font size of cell content:
33-
- a built-in toolbar control
34-
- the ability to provide custom font size in the toolbar control
35-
- New conditional aggregate functions are added into the formulas engine: `COUNTIF`, `COUNTIFS`, `SUMIF`, `SUMIFS`, `AVERAGEIF`, `AVERAGEIFS`, `MAXIFS`, `MINIFS`
36-
- The `awaitRedraw()` helper is added for Spreadsheet to detect the rendering process and perform the desired code after the component finishes its rendering
37-
- JSDoc annotations are added to the type definitions, providing inline API descriptions, parameter types, and code examples directly in the IDE
31+
- The ability to adjust the font size of cell content:
32+
- setting a default font size option via a [built-in toolbar control](/customization/#default-controls)
33+
- setting a [custom font size](/customization/#custom-font-size) for the toolbar control
34+
- New conditional aggregate functions are added into the [formulas engine](/functions/#math-functions): `COUNTIF`, `COUNTIFS`, `SUMIF`, `SUMIFS`, `AVERAGEIF`, `AVERAGEIFS`, `MAXIFS`, `MINIFS`
35+
- The [`awaitRedraw()`](/awaitredraw/) helper is added for Spreadsheet to detect the rendering process and run the desired code after the component finishes rendering
36+
- [JSDoc annotations](/using_typescript/#jsdoc-hints) are added to the type definitions, providing inline API descriptions, parameter types, and code examples directly in the IDE
3837

3938
### Fixes
4039

41-
- Losing focus after switching the active sheet via API
40+
- Losing focus after switching the active sheet via the API
4241
- Returning an array of changed cells in the transpose mode
4342
- Recalculating dependent formulas after paste
4443
- Overwriting locked cells with formulas during paste operations
4544
- The issue with running mathematical formulas in a locked cell
46-
- Sheet name escape cases: looks like cell ref, starts with a number, contains special characters
47-
- Dynamic array and zero id (the first cell of the first sheet)
48-
45+
- Sheet name escaping for names that resemble cell references, start with a number, or contain special characters
46+
- The issue with dynamic arrays when the cell id is zero (the first cell of the first sheet)
4947

5048
## Version 5.2.9
5149

0 commit comments

Comments
 (0)