@univerjs-pro/embed-unit-ui
此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。
Referenced Unit viewer UI for embedding and selecting Sheets, Docs, and Bases content in Web SDK.
TypeScript
import type { IUniverEmbedUnitUIPluginConfig } from '@univerjs-pro/embed-unit-ui'import { UniverEmbedUnitUIPlugin } from '@univerjs-pro/embed-unit-ui'univer.registerPlugin(UniverEmbedUnitUIPlugin, config)Public exports
ReferencedUnitViewerReferencedDataSelectorandIReferencedDataSelectorPropsIReferencedUnitViewerServiceReferencedUnitSelectionKindReferencedUnitViewerStatusIReferencedUnitSelection,IReferencedUnitSelectionDecoration,IReferencedUnitViewerSession, andIReferencedUnitViewerState
ReferencedDataSelector accepts value: IResourceRef | null, onChange(value), and optional className and mobile props. Use it inside Univer's DI context to select referenced data for a custom host editor. Chart reference loading is provided separately by @univerjs-pro/chart-embed.
Entry points
- Locale:
@univerjs-pro/embed-unit-ui/locale/*
你覺得這篇文檔如何?