# SchedulerDialogContext (@salmonui/scheduler)

> The SchedulerDialogContext interface of @salmonui/scheduler.

Canonical: https://salmonui.dev/docs/reference/scheduler/SchedulerDialogContext

```ts
import type { SchedulerDialogContext } from '@salmonui/scheduler';
```

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

## Reference

Kind: interface

```ts
interface SchedulerDialogContext<Row = unknown> {
    readonly isNew: boolean;
    readonly values: Readonly<Record<string, unknown>>;
    readonly setValue: (role: string, value: unknown) => void;
    readonly errors: Readonly<Record<string, string>>;
    readonly row: Row | null;
    readonly save: () => void;
    readonly cancel: () => void;
    readonly delete: () => void;
}
```

Members (8):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `isNew` | `readonly isNew: boolean;` |  |  |
| `values` | `readonly values: Readonly<Record<string, unknown>>;` |  | The editor values by role (`title`, `start`, `end`, ...), with resource fields and the row's other properties by their own names; `setValue` on such a name writes that property. |
| `setValue` | `readonly setValue: (role: string, value: unknown) => void;` |  |  |
| `errors` | `readonly errors: Readonly<Record<string, string>>;` |  |  |
| `row` | `readonly row: Row \| null;` |  |  |
| `save` | `readonly save: () => void;` |  |  |
| `cancel` | `readonly cancel: () => void;` |  |  |
| `delete` | `readonly delete: () => void;` |  |  |
