Why the workbook could not be shown.
The parsed sheets, once the workbook is shown.
The index of the sheet the viewer switched to.
The workbook's bytes, when the caller already has them.
Where to fetch the workbook's bytes. Ignored when ArrayBuffer is set.
Renders a workbook (.xlsx, .xls) inline: fetches the bytes from
Url(or takes them fromArrayBuffer), parses every sheet with SheetJS and shows the active one in an AG Grid, with tabs when there is more than one sheet. Explorer's one spreadsheet renderer: the artifact viewer wraps it with its toolbar, and the Files form shows it in its preview pane.Loadedfires with the parsed sheets once the workbook is shown;Failedfires with the reason when it cannot be;SheetChangefires with the index when the viewer picks another sheet.