# DatePickerEditorContext (@salmonui/calendars/date-picker/data-grid)

> The DatePickerEditorContext interface of @salmonui/calendars/date-picker/data-grid: The part of the Data Grid renderEditor context the editor reads.

Canonical: https://salmonui.dev/docs/reference/calendars/date-picker-data-grid/DatePickerEditorContext

```ts
import type { DatePickerEditorContext } from '@salmonui/calendars/date-picker/data-grid';
```

Entry index: https://salmonui.dev/docs/reference/calendars/date-picker-data-grid (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/calendars/date-picker-data-grid.md).

## Reference

Kind: interface

```ts
interface DatePickerEditorContext {
    readonly value: unknown;
    setValue(value: unknown): void;
    readonly editorProps: Readonly<Record<string, unknown>>;
    readonly inputProps: object;
}
```

The part of the Data Grid `renderEditor` context the editor reads.

Members (4):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `value` | `readonly value: unknown;` |  |  |
| `setValue` | `setValue(value: unknown): void;` |  |  |
| `editorProps` | `readonly editorProps: Readonly<Record<string, unknown>>;` |  | Column `editorProps`: the keys of `DATE_PICKER_EDITOR_PROPS` reach the `DatePicker`. |
| `inputProps` | `readonly inputProps: object;` |  | The id and ARIA wiring of the grid editor (id, `aria-label`, `aria-invalid`, `aria-describedby`, `aria-required`, `autoFocus`, `disabled`). |
