# valueParser

Converts input text to the stored type, for example by normalizing numbers or dates.

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

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

## What does this API do?

Converts input text to the stored type, for example by normalizing numbers or dates.

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

## Exact input and result types

```typescript
valueParser?: GridCallback<[ValueParserParams<TData, TValue, TContext>], TValue>
```

| Item | Value |
| --- | --- |
| Required | Optional |
| Input type | GridCallback<[ValueParserParams<TData, TValue, TContext>], TValue> |

<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

- [GridCallback](https://grid.syidax.com/docs/types/GridCallback.md)
- [ValueParserParams](https://grid.syidax.com/docs/types/ValueParserParams.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.
