# InlineEditValidation (@salmonui/editors/inline-edit)

> The InlineEditValidation type of @salmonui/editors/inline-edit: Validation rules: the Data Grid column.validation vocabulary, evaluated by @salmonui/core/validation. Each rule value is the argument or [argument, message].

Canonical: https://salmonui.dev/docs/reference/editors/inline-edit/InlineEditValidation

```ts
import type { InlineEditValidation } from '@salmonui/editors/inline-edit';
```

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

## Reference

Kind: type

```ts
type InlineEditValidation<T = unknown> = Omit<ColumnValidation, 'validate'> & {
    readonly validate?: InlineEditValidator<T> | readonly [
        InlineEditValidator<T>,
        string
    ] | readonly InlineEditValidator<T>[];
};
```

Validation rules: the Data Grid `column.validation` vocabulary,
evaluated by `@salmonui/core/validation`. Each rule value is the
argument or `[argument, message]`.

Members (18):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `required` | `required?: RuleValue<boolean>;` | optional, inherited |  |
| `min` | `min?: RuleValue<string \| number>;` | optional, inherited |  |
| `max` | `max?: RuleValue<string \| number>;` | optional, inherited |  |
| `range` | `range?: RuleValue<readonly [string \| number, string \| number]>;` | optional, inherited |  |
| `minLength` | `minLength?: RuleValue<number>;` | optional, inherited |  |
| `maxLength` | `maxLength?: RuleValue<number>;` | optional, inherited |  |
| `rangeLength` | `rangeLength?: RuleValue<readonly [number, number]>;` | optional, inherited |  |
| `number` | `number?: RuleValue<boolean>;` | optional, inherited |  |
| `digits` | `digits?: RuleValue<boolean>;` | optional, inherited |  |
| `email` | `email?: RuleValue<boolean>;` | optional, inherited |  |
| `url` | `url?: RuleValue<boolean>;` | optional, inherited |  |
| `date` | `date?: RuleValue<boolean>;` | optional, inherited |  |
| `dateIso` | `dateIso?: RuleValue<boolean>;` | optional, inherited |  |
| `creditcard` | `creditcard?: RuleValue<boolean>;` | optional, inherited |  |
| `tel` | `tel?: RuleValue<boolean>;` | optional, inherited |  |
| `pattern` | `pattern?: RuleValue<string \| RegExp>;` | optional, inherited | A pattern string or a RegExp, tested as a search: a partial match passes, so anchor the pattern (`^[A-Z]{3}$`) to require the whole value. |
| `messages` | `messages?: Partial<ValidationMessages>;` | optional, inherited | Message overrides of this column, keyed by rule name; they win over `edit.messages`. |
| `validate` | `validate?: InlineEditValidator<T> \| readonly InlineEditValidator<T>[] \| readonly [InlineEditValidator<T>, string];` | optional, inherited |  |
