Skip to content

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

ParameterTypeDescription
worksheetWorksheetThe ExcelJS worksheet.
namestringThe header name for the new column.
indexnumberThe 1-based column index where the column is inserted.

Returns

void

Example

ts
addColumn(worksheet, 'Status', 3);

Matterway Assistant SDK Documentation