@univerjs/sheets-numfmt adds core number-format services and commands for Univer Sheets.
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|---|---|---|---|---|---|
@univerjs/sheets-numfmt |
UniverSheetsNumfmt |
No | No | Yes | No |
pnpm add @univerjs/sheets-numfmt
# or
npm install @univerjs/sheets-numfmtStart with the integration setup for your document type, including its required plugins, styles, and locale resources. The snippet below assumes that setup is complete.
import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';
univer.registerPlugin(UniverSheetsNumfmtPlugin);Use this package with @univerjs/sheets-numfmt-ui when users need number-format menus and editors.
- Import
@univerjs/sheets-numfmt/facadewhen using this package through Univer Facade APIs.