# PivotCommandOptions (@salmonui/pivot-table)

> The PivotCommandOptions interface of @salmonui/pivot-table: Options of a model command.

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

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

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

## Reference

Kind: interface

```ts
interface PivotCommandOptions {
    readonly source?: PivotEventSource | undefined;
    readonly draft?: boolean | undefined;
}
```

Options of a model command.

Members (2):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `source` | `readonly source?: PivotEventSource \| undefined;` | optional | Input that caused the command. Default `'api'`. |
| `draft` | `readonly draft?: boolean \| undefined;` | optional | Edit the draft model (a field list with `deferUpdate`) instead of the applied one. |
