UNPKG

@univerjs-pro/sheets-pivot

Version:

Pivot table integration for Univer Sheets.

25 lines (24 loc) 795 B
import type { ICommand } from '@univerjs/core'; export interface ISetPivotCollapseCommandParams { /** * @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 {number} row The row index of the cell. */ row: number; /** * @property {number} col The column index of the cell. */ col: number; /** * @property {boolean} collapse The collapse status of the pivot item.True means collapse, false means expand. */ collapse: boolean; } export declare const SetPivotCollapseCommand: ICommand<ISetPivotCollapseCommandParams>;