cycyexcel
中文0.2.0

API

createSheet()

Create a CyExcelCore instance with a toolbar and formula bar above the sheet.

Signature

ts
function createSheet(
  container: HTMLElement,
  options?: CreateSheetOptions
): CyExcelCore
NameTypeDescription
containerHTMLElementThe mount element, which must have measurable width and height.
options.localeLocaleUI language: en-US, zh-CN, or a custom dictionary; defaults to zh-CN.
options.toolbarboolean | ToolbarOptionsDefaults to true. Set false to disable the toolbar, or pass options to replace or extend its schema.
options.formulaBarbooleanDefaults to true. Controls the name box and formula input.
options.columnsCyExcelColumnConfig[]Column display options, indexed by column coordinate.
options.snapshotWorkbookSnapshotInitial snapshot, typically created with matrixToWorkbookSnapshot().

Examples