@univerjs-pro/sheets-pivot
Version:
Univer Sheets Pivot Table
26 lines (25 loc) • 961 B
TypeScript
import { PivotTableFiledAreaEnum } from '@univerjs-pro/engine-pivot';
import { ICommand } from '@univerjs/core';
/**
* Represents the parameters of the `reset-pivot-fields-config` command.
* @description It is used to reset the pivot table fields with provided config.
*/
export interface IResetPivotFieldsConfigCommandParams {
/**
* @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 {PivotTableFiledAreaEnum} resetArea The reset area to set or undefined to reset all.
*/
resetArea: PivotTableFiledAreaEnum;
}
export declare const ResetPivotFieldsConfigCommand: ICommand<IResetPivotFieldsConfigCommandParams>;