Home > @polyspec/crudui-generator-core > CellRenderer
CellRenderer type
One cell renderer: a function that turns a raw value + the format's isolated dependent keys (o) + render context into a CellDisplay.
Signature:
export type CellRenderer = (value: unknown, o: Record<string, unknown>, ctx: CellRenderCtx) => CellDisplay;
References: CellRenderCtx, CellDisplay