@univerjs/sheets-table
v1.3.1
Published
Structured table model and commands for Univer Sheets.
Readme
@univerjs/sheets-table
@univerjs/sheets-table adds the core table model and commands for binding structured table data in Univer Sheets.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
| --- | --- | :---: | :---: | :---: |
| @univerjs/sheets-table | UniverSheetsTable | No | Yes | Yes |
Installation
pnpm add @univerjs/sheets-table
# or
npm install @univerjs/sheets-tableKeep all @univerjs/* packages on the same version.
Usage
import { LocaleType, mergeLocales, Univer } from '@univerjs/core';
import { UniverSheetsTablePlugin } from '@univerjs/sheets-table';
import EnUS from '@univerjs/sheets-table/locale/en-US';
const univer = new Univer({
locale: LocaleType.EN_US,
locales: {
[LocaleType.EN_US]: mergeLocales(EnUS),
},
});
univer.registerPlugin(UniverSheetsTablePlugin);Integration Notes
Use this package with @univerjs/sheets-table-ui when users need table controls in the sheet UI.
