API
createSheet()
Create a CyExcelCore instance with a toolbar and formula bar above the sheet.
Signature
ts
function createSheet( container: HTMLElement, options?: CreateSheetOptions ): CyExcelCore
| Name | Type | Description |
|---|---|---|
| container | HTMLElement | The mount element, which must have measurable width and height. |
| options.locale | Locale | UI language: en-US, zh-CN, or a custom dictionary; defaults to zh-CN. |
| options.toolbar | boolean | ToolbarOptions | Defaults to true. Set false to disable the toolbar, or pass options to replace or extend its schema. |
| options.formulaBar | boolean | Defaults to true. Controls the name box and formula input. |
| options.columns | CyExcelColumnConfig[] | Column display options, indexed by column coordinate. |
| options.snapshot | WorkbookSnapshot | Initial snapshot, typically created with matrixToWorkbookSnapshot(). |