@univerjs-pro/sheets-slicer
此 API 頁面目前提供英文內容。程式碼簽名與識別符不隨介面語言變更。
Slicer and timeline data, filtering, and Facade APIs for Univer Sheets.
TypeScript
import { UniverSheetsSlicerPlugin } from '@univerjs-pro/sheets-slicer'import '@univerjs-pro/sheets-slicer/facade'univer.registerPlugin(UniverSheetsSlicerPlugin)For interactive controls, also register @univerjs-pro/sheets-slicer-ui. See the slicer guide for the required Sheets, drawing, Table, and PivotTable setup.
Entry Points
- Facade:
@univerjs-pro/sheets-slicer/facade
IUniverSheetsSlicerConfig
TypeScript
export interface IUniverSheetsSlicerConfig { notExecuteFormula?: boolean maxMemberWindowSize?: number}notExecuteFormula is true on the main thread and false in the calculation Worker. Omit it when calculation and UI run in the same Univer instance.
maxMemberWindowSize limits the number of members returned by a query window. It defaults to 200 and must be a positive integer.
Facade API
FSheetSlicerandFSheetTimelinemanage existing controls.FSheetSlicerBuilderandFSheetTimelineBuilderconfigure new controls.
ISlicerSourceMetadata describes the source field and its readiness. It contains fieldId, name, ready, and optional timeline bounds and interaction state.
你覺得這篇文檔如何?