# DataGridEditorProps (@salmonui/data-grid)

> The DataGridEditorProps interface of @salmonui/data-grid: Props of the built-in editors (column editorProps). Unknown keys are ignored.

Canonical: https://salmonui.dev/docs/reference/data-grid/DataGridEditorProps

```ts
import type { DataGridEditorProps } from '@salmonui/data-grid';
```

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

## Reference

Kind: interface

```ts
interface DataGridEditorProps {
    readonly options?: readonly (string | number | boolean | DataGridEditorOption)[];
    readonly placeholder?: string;
    readonly min?: string | number;
    readonly max?: string | number;
    readonly step?: string | number;
    readonly minLength?: number;
    readonly maxLength?: number;
    readonly autoComplete?: string;
    readonly spellCheck?: boolean;
    readonly multiline?: boolean;
    readonly firstDayOfWeek?: number;
    readonly calendar?: string;
    readonly className?: string;
    readonly style?: CSSProperties;
    readonly [key: string]: unknown;
}
```

Props of the built-in editors (column `editorProps`). Unknown keys are ignored.

Members (14):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `options` | `readonly options?: readonly (string \| number \| boolean \| DataGridEditorOption)[];` | optional | `select`: options; values are primitives or `{ value, label }`. Lookup columns default to their local lookup rows. |
| `placeholder` | `readonly placeholder?: string;` | optional | `select`: label of an empty first option (clears the value). |
| `min` | `readonly min?: string \| number;` | optional | `number`: the smallest and largest value: ArrowUp / ArrowDown stop there, and a typed plain number outside the range is clamped when the editor commits (Enter, Tab) or loses focus; also `aria-valuemin` / `aria-valuemax`. `date` / `datetime`: the earliest and latest day the date picker offers (days outside are disabled; typed text is not clamped). The `text` editor has no value range: use `minLength` / `maxLength`. |
| `max` | `readonly max?: string \| number;` | optional |  |
| `step` | `readonly step?: string \| number;` | optional | `number`: the ArrowUp / ArrowDown increment (default 1). |
| `minLength` | `readonly minLength?: number;` | optional | `text`: native `minlength` / `maxlength` of the input or textarea. |
| `maxLength` | `readonly maxLength?: number;` | optional |  |
| `autoComplete` | `readonly autoComplete?: string;` | optional |  |
| `spellCheck` | `readonly spellCheck?: boolean;` | optional |  |
| `multiline` | `readonly multiline?: boolean;` | optional | `text`: `<textarea>` instead of `<input>`. |
| `firstDayOfWeek` | `readonly firstDayOfWeek?: number;` | optional | `date` / `datetime`: first day of the calendar week, `0` Sunday ... `6` Saturday. Default: from `locale`. |
| `calendar` | `readonly calendar?: string;` | optional | `date` / `datetime`: `Intl` calendar of the picker labels (`'japanese'`, `'buddhist'`, `'islamic-umalqura'`, ...). Default: the `locale` calendar. |
| `className` | `readonly className?: string;` | optional |  |
| `style` | `readonly style?: CSSProperties;` | optional |  |
