@univerjs/sheets-ui
v1.6.2
Published
Spreadsheet UI layer for Univer Sheets.
Readme
@univerjs/sheets-ui
@univerjs/sheets-ui provides the main spreadsheet UI layer for Univer Sheets, including selection, menus, clipboard, formula bar integration, and rendering interaction services.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
| --- | --- | :---: | :---: | :---: | :---: |
| @univerjs/sheets-ui | UniverSheetsUi | Yes | Yes | Yes | No |
Installation
pnpm add @univerjs/sheets-ui
# or
npm install @univerjs/sheets-uiUsage
Start 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 '@univerjs/sheets-ui/lib/index.css';
import EnUS from '@univerjs/sheets-ui/locale/en-US';
import { UniverSheetsUIPlugin } from '@univerjs/sheets-ui';
univer.registerPlugin(UniverSheetsUIPlugin);
// Merge EnUS into your Univer locale map when this package contributes UI text.Exported plugin classes:
UniverSheetsUIPluginUniverSheetsMobileUIPlugin
Integration Notes
- Import
@univerjs/sheets-ui/facadewhen using this package through Univer Facade APIs.
