# CellContext

> _Since v0.1.1_

Runtime cell context used internally for compiled template execution.

Contains the minimal context needed to render a cell: the row data,
cell value, field name, and column configuration.

#### Example

```typescript
import type { CellContext, ColumnInternal } from '@toolbox-web/grid';

// Used internally by compiled templates
const renderCell = (ctx: CellContext) => {
  return `<span title="${ctx.field}">${ctx.value}</span>`;
};
```

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

## See Also

- [`CellRenderContext`](/grid/api/core/interfaces/cellrendercontext.md) for public cell render context
- [`EditorExecContext`](/grid/api/plugin-development/interfaces/editorexeccontext.md) for editor context with commit/cancel
