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
When a new column is added, neighboring columns are moved to the right.
44
44
45
+
:::note
46
+
You can delete several columns by providing a range of cells' ids as a parameter of the `deleteColumn()` method, e.g.: "A1:C3".
47
+
:::
48
+
45
49
### Rows
46
50
47
51
To add/delete a row, use the API methods below:
48
52
49
53
-[](api/spreadsheet_addrow_method.md)
50
54
-[](api/spreadsheet_deleterow_method.md)
51
55
52
-
Pass to the methods the id of the cell that contains the id of a row that should be added.
56
+
Pass to the methods the id of the cell that contains the id of a row that should be added/deleted.
53
57
54
58
~~~jsx
55
59
// adds an empty second row
@@ -60,6 +64,10 @@ spreadsheet.deleteRow("A2");
60
64
61
65
When a new row is added, neighboring rows are moved one cell down.
62
66
67
+
:::note
68
+
You can delete several rows by providing a range of cells' ids as a parameter of the `deleteRow()` method, e.g.: "A1:C3".
69
+
:::
70
+
63
71
## Autofit column width
64
72
65
73
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.
0 commit comments