# cellEditor

Declares a custom cell editor. Use editor to select a built-in editor type.

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

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

## What does this API do?

Declares a custom cell editor. Use editor to select a built-in editor type.

Rich Select Editor requires Pro. Custom cell editors are Free.

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

## Exact input and result types

```typescript
cellEditor?: GridCellEditorDeclaration<TData, TValue, TContext>
```

| Item | Value |
| --- | --- |
| Required | Optional |
| Input type | GridCellEditorDeclaration<TData, TValue, TContext> |

<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="types"></a>

## Read related types

- [GridCellEditorDeclaration](https://grid.syidax.com/docs/types/GridCellEditorDeclaration.md)

<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.
