mirror of
https://github.com/dream-num/univer.git
synced 2026-10-02 04:24:34 +08:00
@univerjs/docs-toc-ui
@univerjs/docs-toc-ui adds Ribbon, context-menu, update dialog, and active-range feedback for @univerjs/docs-toc.
Package Overview
| Package | UMD global | CSS | Locales | Facade entry |
|---|---|---|---|---|
@univerjs/docs-toc-ui |
UniverDocsTocUi |
Yes | Yes | No |
Installation
pnpm add @univerjs/docs-toc-ui
# or
npm install @univerjs/docs-toc-ui
Keep all @univerjs/* packages on the same version.
Usage
import '@univerjs/docs-toc-ui/lib/index.css';
import EnUS from '@univerjs/docs-toc-ui/locale/en-US';
import { UniverDocsTocUIPlugin } from '@univerjs/docs-toc-ui';
univer.registerPlugin(UniverDocsTocUIPlugin);
// Merge EnUS into your Univer locale map when this package contributes UI text.
Register this package after Docs, Docs UI, Render Engine, and Docs TOC core packages.