# PivotPanelChangeDetail

Fields, allowed values, and APIs that use PivotPanelChangeDetail.

Canonical: https://grid.syidax.com/docs/types/PivotPanelChangeDetail/

<a id="definition"></a>

## Type definition

A question mark (?) marks an optional field; readonly marks a value you should not change directly. A union (|) accepts one of the listed forms. Functions are callbacks that Grid invokes at the relevant point.

```typescript
export interface PivotPanelChangeDetail extends PivotPanelConfig {
  readonly type: 'pivot-panel-change';
  readonly operation: PivotPanelChangeOperation;
  readonly field: string;
  readonly from: PivotPanelLocation;
  readonly to: PivotPanelLocation;
  readonly previousAggFunc: string | null;
  readonly aggFunc: string | null;
  readonly availableFields: readonly string[];
}
```

<a id="used-by"></a>

## APIs using this type

- [pivotPanelChanged](https://grid.syidax.com/docs/events/pivotPanelChanged.md) — Emitted when axes change in the pivot panel. Inspect the changed axis and current pivot state.
- [pivotChanged](https://grid.syidax.com/docs/events/pivotChanged.md) — Reports pivot configuration changes. Avoid duplicate saves from subscribing to both compatibility and panel events.

<a id="parents"></a>

## Contracts containing this type

- [SyGridEventMap](https://grid.syidax.com/docs/types/SyGridEventMap.md)

<a id="related"></a>

## Related types

- [PivotPanelConfig](https://grid.syidax.com/docs/types/PivotPanelConfig.md)
- [PivotPanelChangeOperation](https://grid.syidax.com/docs/types/PivotPanelChangeOperation.md)
- [PivotPanelLocation](https://grid.syidax.com/docs/types/PivotPanelLocation.md)
