Appearance
Function: mwFileToWorkbook()
ts
function mwFileToWorkbook(file: MwFile): Promise<Workbook>;Defined in: src/excel/excel.tsx:267
Convert an MwFile to an ExcelJS Workbook.
Parameters
| Parameter | Type | Description |
|---|---|---|
file | MwFile | The MwFile to convert. |
Returns
Promise<Workbook>
A promise that resolves to the Workbook.
Example
ts
const workbook = await mwFileToWorkbook(uploadedFile);
const sheet = workbook.getWorksheet('Roster');