# editor

Built-in editor type, such as text, number, date, select, or checkbox.

Canonical: https://grid.syidax.com/docs/columns/editor/

<a id="meaning"></a>

## What does this API do?

Built-in editor type, such as text, number, date, select, or checkbox.

Rich Select (autocomplete) requires Pro. Basic cell editors are Free.

<a id="contract"></a>

## Exact input and result types

```typescript
editor?: 'text' | 'number' | 'date' | 'select' | 'checkbox' | 'textarea' | 'autocomplete' | 'largeText'
```

| Item | Value |
| --- | --- |
| Required | Optional |
| Input type | 'text' \| 'number' \| 'date' \| 'select' \| 'checkbox' \| 'textarea' \| 'autocomplete' \| 'largeText' |

<a id="usage"></a>

## Usage flow

Set this on an individual column object in columnDefs. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

<a id="recipes"></a>

## Feature explanations and examples

- [Cell and row editing](https://grid.syidax.com/docs/features/cell-editing.md) — Cell editing changes one value immediately; full-row editing commits multiple fields as one row operation. editor specifies the input UI, while editable controls write access.
- [Searchable selection editor](https://grid.syidax.com/docs/features/rich-select.md) — This Pro editor narrows a large candidate list through search. Basic Select suits short, fixed lists; Rich Select helps users quickly find an item among many candidates.
