Appearance
Function: addColumn()
ts
function addColumn(
worksheet: Worksheet,
name: string,
index: number): void;Defined in: src/excel/excel.tsx:823
Add a new column at the specified index.
Parameters
| Parameter | Type | Description |
|---|---|---|
worksheet | Worksheet | The ExcelJS worksheet. |
name | string | The header name for the new column. |
index | number | The 1-based column index where the column is inserted. |
Returns
void
Example
ts
addColumn(worksheet, 'Status', 3);