Build your own AI office with Univer Office SDK. Bring editing, calculation, collaboration, and file processing into your product for people and AI agents. Built on an extensible open-source core.
TypeScript boardcollaborationdocdocxexceloffce365officepdfpptpptxpresentationsdksheetslidesspreadsheetuniverwordwordprocessorworkspacexlsx
@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 | Worker entry |
|---|---|---|---|---|---|
@univerjs/docs-toc-ui |
UniverDocsTocUi |
Yes | Yes | No | No |
Installation
pnpm add @univerjs/docs-toc-ui
# or
npm install @univerjs/docs-toc-ui
Usage
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/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.