UNPKG

@univerjs-pro/sheets-pivot

Version:

Univer Sheets Pivot Table

26 lines (25 loc) 921 B
import { IPivotTableSnapshot } from '@univerjs-pro/engine-pivot'; import { ICommand } from '@univerjs/core'; /** * Represents the parameters of the `set-pivot-fields-config` command. * @description Set the pivot table fields with provided config. */ export interface ISetPivotFieldsConfigCommandParams { /** * @property {string} unitId The unit id of workbook which the pivot table belongs to. */ unitId: string; /** * @property {string} subUnitId The sub unit id of worksheet which the pivot table belongs to. */ subUnitId: string; /** * @property {string} pivotTableId The pivot table id. */ pivotTableId: string; /** * @property {IPivotTableSnapshot} pivotTableConfig The pivot table config to set. */ pivotTableConfig: IPivotTableSnapshot; } export declare const SetPivotFieldsConfigCommand: ICommand<ISetPivotFieldsConfigCommandParams>;