Skip to content

[add] what's new and docs updates for v5.1.2 #27

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/api/spreadsheet_deletecolumn_method.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ spreadsheet.parse(data);
spreadsheet.deleteColumn("G2");
~~~

:::note
You can delete several columns by providing a range of cells' ids as a parameter of the method, e.g.: "A1:C3".
:::

**Related articles:** [Work with Spreadsheet](working_with_ssheet.md#addingremoving-rows-and-columns)
4 changes: 4 additions & 0 deletions docs/api/spreadsheet_deleterow_method.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ spreadsheet.parse(data);
spreadsheet.deleteRow("G2");
~~~

:::note
You can delete several rows by providing a range of cells' ids as a parameter of the method, e.g.: "A1:C3".
:::

**Related articles:** [Work with Spreadsheet](working_with_ssheet.md#addingremoving-rows-and-columns)
6 changes: 4 additions & 2 deletions docs/localization.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,12 @@ const en = {
columns: "Columns",
rows: "Rows",
addColumn: "Add column left",
removeColumn: "Remove column",
removeColumn: "Remove column {col}",
removeColumns: "Remove columns {col}",
fitToData: "Fit to data",
addRow: "Add row above",
removeRow: "Remove row",
removeRow: "Remove row {row}",
removeRows: "Remove rows {row}",
row: "row",
col: "col",
freeze: "Freeze",
Expand Down
17 changes: 17 additions & 0 deletions docs/whats_new.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,23 @@ description: You can learn what's new in the DHTMLX JavaScript Spreadsheet libra

If you are updating Spreadsheet from an older version, check [Migration to Newer Version](migration.md) for details.

## Version 5.2.1

Released on June 27, 2025

### Fixes

- The copy/paste script error
- The error that occurred on deleting a row with the two or more last rows selected in the sheet
- The issue with warning displayed on the toolbar customization
- The issue with missing localization for the datepicker
- The issue with unnecessary displaying of the vertical scroll in the toolbar
- Math fixes for correct calculations in formulas

### Updates

- The possibility to remove several columns/rows in one operation via the context menu

## Version 5.2

Released on May 20, 2025
Expand Down
8 changes: 8 additions & 0 deletions docs/work_with_rows_cols.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ To remove a row, take the following steps:

![Removing rows context menu](assets/remove_row_context_menu.png)

:::note
To remove several rows at once: select the rows, right-click to call the context menu and choose *Rows -> Remove rows [ids]*.
:::

### Adding columns

To add a new column, take the following steps:
Expand Down Expand Up @@ -90,6 +94,10 @@ To remove a column, take the following steps:

![Adding columns context menu](assets/remove_column_context_menu.png)

:::note
To remove several columns at once: select the columns, right-click to call the context menu and choose *Columns -> Remove columns [ids]*.
:::

## AutoFit column width

To change the column width so that it would automatically fit the longest content in the column, you can:
Expand Down
12 changes: 10 additions & 2 deletions docs/working_with_ssheet.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ To add/delete a column, use the related API methods:
- [](api/spreadsheet_addcolumn_method.md)
- [](api/spreadsheet_deletecolumn_method.md)

Pass to the methods the id of the cell that contains the id of a column that should be added.
Pass to the methods the id of the cell that contains the id of a column that should be added/deleted.

~~~jsx
// adds an empty "C" column
Expand All @@ -42,14 +42,18 @@ spreadsheet.deleteColumn("C1");

When a new column is added, neighboring columns are moved to the right.

:::note
You can delete several columns by providing a range of cells' ids as a parameter of the `deleteColumn()` method, e.g.: "A1:C3".
:::

### Rows

To add/delete a row, use the API methods below:

- [](api/spreadsheet_addrow_method.md)
- [](api/spreadsheet_deleterow_method.md)

Pass to the methods the id of the cell that contains the id of a row that should be added.
Pass to the methods the id of the cell that contains the id of a row that should be added/deleted.

~~~jsx
// adds an empty second row
Expand All @@ -60,6 +64,10 @@ spreadsheet.deleteRow("A2");

When a new row is added, neighboring rows are moved one cell down.

:::note
You can delete several rows by providing a range of cells' ids as a parameter of the `deleteRow()` method, e.g.: "A1:C3".
:::

## Autofit column width

To change the column width so that it would automatically adjust to the longest content in the column, apply the [fitColumn()](api/spreadsheet_fitcolumn_method.md) method. The method takes one parameter - the id of the cell that contains the name of the necessary column.
Expand Down
Loading