Skip to content

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.

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>`;
};
PropertyTypeDescription
rowT
valueunknown
fieldstring
columnColumnInternal<T>
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://toolboxjs.com/llms-full.txt