@univerjs/sheets-numfmt
TypeScript icon, indicating that this package has built-in type declarations

0.4.2 • Public • Published

@univerjs/sheets-numfmt

sheets-numfmt

Package Overview

Package Name UMD Namespace Version License Downloads Contains CSS Contains i18n locales
@univerjs/sheets-numfmt UniverSheetsNumfmt ⭕️ ⭕️

Introduction

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

[!NOTE] 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

# 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.EN_US,
    locales,
    logLevel: LogLevel.VERBOSE,
});

// ... Other plug-ins are registered

univer.registerPlugin(UniverSheetsNumfmtPlugin);

[!NOTE] If you need to export the snapshot to support the export data format, you need to add some additional code

Readme

Keywords

Package Sidebar

Install

npm i @univerjs/sheets-numfmt

Homepage

univer.ai

Weekly Downloads

3,329

Version

0.4.2

License

Apache-2.0

Unpacked Size

261 kB

Total Files

66

Last publish

Collaborators

  • yuhongz
  • wbfsa
  • jikkai
  • wendellhu95
  • mengshukeji