# EditorExecContext

> _Since v0.1.1_

Internal editor execution context extending the generic cell context with commit helpers.

Used internally by the editing system. For public editor APIs,
prefer using ColumnEditorContext.

#### Example

```typescript
import type { EditorExecContext } from '@toolbox-web/grid';

// Internal editor template execution
const execEditor = (ctx: EditorExecContext) => {
  const input = document.createElement('input');
  input.value = String(ctx.value);
  input.onkeydown = (e) => {
    if (e.key === 'Enter') ctx.commit(input.value);
    if (e.key === 'Escape') ctx.cancel();
  };
  return input;
};
```

## Properties

| Property | Type | Description |
| -------- | ---- | ----------- |
| `row` | <code>T</code> |  |
| `value` | <code>unknown</code> |  |
| `field` | <code>string</code> |  |
| `column` | <code><a href="/grid/api/plugin-development/interfaces/columninternal/">ColumnInternal</a>&lt;T&gt;</code> |  |
| `commit` | <code>(newValue: unknown) =&gt; void</code> |  |
| `cancel` | <code>() =&gt; void</code> |  |

## See Also

- [`ColumnEditorContext`](/grid/api/core/interfaces/columneditorcontext.md) for public editor context
- [`CellContext`](/grid/api/plugin-development/interfaces/cellcontext.md) for base cell context
