diff --git a/docs/api/spreadsheet_deletecolumn_method.md b/docs/api/spreadsheet_deletecolumn_method.md index f13ccae2..c230d18b 100644 --- a/docs/api/spreadsheet_deletecolumn_method.md +++ b/docs/api/spreadsheet_deletecolumn_method.md @@ -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) diff --git a/docs/api/spreadsheet_deleterow_method.md b/docs/api/spreadsheet_deleterow_method.md index cebc9b27..229eed9d 100644 --- a/docs/api/spreadsheet_deleterow_method.md +++ b/docs/api/spreadsheet_deleterow_method.md @@ -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) diff --git a/docs/localization.md b/docs/localization.md index cda28a6f..3ff5a85d 100644 --- a/docs/localization.md +++ b/docs/localization.md @@ -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", diff --git a/docs/whats_new.md b/docs/whats_new.md index 9612b11e..a1e421f0 100644 --- a/docs/whats_new.md +++ b/docs/whats_new.md @@ -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 diff --git a/docs/work_with_rows_cols.md b/docs/work_with_rows_cols.md index 55bde7ea..ff97b8f3 100644 --- a/docs/work_with_rows_cols.md +++ b/docs/work_with_rows_cols.md @@ -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: @@ -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: diff --git a/docs/working_with_ssheet.md b/docs/working_with_ssheet.md index 68c3a5dd..9de59b92 100644 --- a/docs/working_with_ssheet.md +++ b/docs/working_with_ssheet.md @@ -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 @@ -42,6 +42,10 @@ 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: @@ -49,7 +53,7 @@ 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 @@ -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.