Skip to content

@univerjs/sheets-numfmt

notice

npm version license CSS Included i18n

Introduction

Providing editing/rendering capabilities around number format, such as edit panels, toolbar buttons, real-time previews, row/column variations, etc.

Numerical format is one of the core functions of electronic spreadsheets, and therefore, parsing and handling of numerical format is done within @univerjs/sheets.

Usage

Installation

Terminal window
# Using npm
npm install @univerjs/sheets-numfmt
# Using pnpm
pnpm add @univerjs/sheets-numfmt

How to use

Import @univerjs/sheets-numfmt at the entrance .

import { LocaleType, LogLevel, Univer } from '@univerjs/core';
import { defaultTheme } from '@univerjs/design';
import { UniverSheetsNumfmtPlugin } from '@univerjs/sheets-numfmt';
// univer
const univer = new Univer({
theme: defaultTheme,
locale: LocaleType.ZH_CN,
locales,
logLevel: LogLevel.VERBOSE,
});
// ... Other plug-ins are registered
univer.registerPlugin(UniverSheetsNumfmtPlugin);