Workbook Data Structure

IWorkbookData

IWorkbookData is the snapshot of a workbook in Univer Sheets.

Properties

PropertyTypeDescription
idstringUnique identifier of the workbook.
namestringName of the workbook.
appVersionstringVersion of the Univer model definition.
localeLocaleTypeLocale of the document.
stylesRecord<string, Nullable<IStyleData>>Style references for the workbook.
sheetOrderstring[]The worksheet IDs, in the order the sheets appear.
sheets{ [sheetId: string]: Partial<IWorksheetData> }Record containing data for each worksheet.
resources?IResourcesData owned by plugins.

Example

TypeScript
const workbookData: IWorkbookData = {  id: 'unique-workbook-id',  name: 'My Workbook',  appVersion: '0.10.2',  locale: LocaleType.EN_US,  styles: {/* style definitions */},  sheetOrder: ['sheet1', 'sheet2'],  sheets: {    sheet1: {/* sheet data */},    sheet2: {/* sheet data */},  },}

Usage

Univer Sheets stores workbook data in IWorkbookData. The structure is used in two situations:

  1. Creating a workbook from IWorkbookData
  2. Saving a workbook's data as IWorkbookData

The resources property holds data owned by plugins. See Plugin Custom Model.

How is this guide?

© 2026 DreamNum Co., Ltd.