@univerjs/docs-toc-ui adds Ribbon, context-menu, update dialog, and active-range feedback for @univerjs/docs-toc.
| Package | UMD global | CSS | Locales | Facade entry | Worker entry |
|---|---|---|---|---|---|
@univerjs/docs-toc-ui |
UniverDocsTocUi |
Yes | Yes | No | No |
pnpm add @univerjs/docs-toc-ui
# or
npm install @univerjs/docs-toc-uiStart 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/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.