API 참조

@univerjs/docs-toc-ui

이 API 페이지의 본문은 현재 영어로 제공됩니다. 코드 시그니처와 식별자는 언어에 따라 바뀌지 않습니다.

Ribbon controls, context menus, configuration dialog, and active-range highlighting for a document table of contents.

TypeScript
import { UniverDocsTocPlugin } from '@univerjs/docs-toc'import { UniverDocsTocUIPlugin } from '@univerjs/docs-toc-ui'import DocsTocUIEnUS from '@univerjs/docs-toc-ui/locale/en-US'import { LocaleType } from '@univerjs/core'import '@univerjs/docs-toc-ui/lib/index.css'univerAPI.loadLocales(LocaleType.EN_US, DocsTocUIEnUS)univer.registerPlugin(UniverDocsTocPlugin)univer.registerPlugin(UniverDocsTocUIPlugin)

Merge DocsTocUIEnUS into the application's locales configuration before opening a document. This package requires Docs, Docs UI, and the render engine. It accepts menu?: MenuConfig and exports DocsTocUIMenuSchema for menu customization. It has no Facade entry.

The current Docs core and advanced presets do not include these plugins; register both explicitly. See the table-of-contents guide.

이 가이드는 어떠셨나요?

© 2026 DreamNum Co., Ltd.