# PivotTotals (@salmonui/pivot-table/engine)

> The PivotTotals interface of @salmonui/pivot-table/engine.

Canonical: https://salmonui.dev/docs/reference/pivot-table/engine/PivotTotals

```ts
import type { PivotTotals } from '@salmonui/pivot-table/engine';
```

Entry index: https://salmonui.dev/docs/reference/pivot-table/engine (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pivot-table/engine.md).

## Reference

Kind: interface

```ts
interface PivotTotals {
    readonly grand: 'both' | 'rows' | 'columns' | 'none';
    readonly grandPosition: 'start' | 'end';
    readonly sub: boolean | Readonly<Record<string, boolean>>;
    readonly subPosition: 'start' | 'end' | 'auto';
}
```

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `grand` | `readonly grand: 'both' \| 'rows' \| 'columns' \| 'none';` |  |  |
| `grandPosition` | `readonly grandPosition: 'start' \| 'end';` |  |  |
| `sub` | `readonly sub: boolean \| Readonly<Record<string, boolean>>;` |  |  |
| `subPosition` | `readonly subPosition: 'start' \| 'end' \| 'auto';` |  |  |
