@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'const config: IUniverEmbedUnitUIPluginConfig = {}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/*
IUniverEmbedUnitUIPluginConfig
TypeScript
export interface IUniverEmbedUnitUIPluginConfig { workerURL?: string | Worker}workerURL supplies a Worker script URL or a Worker instance for calculation in the referenced unit viewer. Without it, calculation runs on the main thread.
이 가이드는 어떠셨나요?