WarUI

Custom cell templates in each framework

GRID-A07-F16P0baselinePlanned

`cellRenderer` accepts a native component in each supported framework: React, Vue, Angular, Svelte and Web Components or vanilla. Every framework receives the same typed props contract. This lets teams render rich cells with their own components while keeping virtualization and recycling efficient.

Planned. This page shows the specification from issue #184. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

The same user grid rendered with a custom 'UserCell' template. A framework switcher shows the equivalent source code.

Expected behavior

Output is visually identical across frameworks. A data update re-renders only the affected cell. The render count overlay shows no full re-render on scroll recycling beyond the visible cells.

Planned API surface

cellRendererCellRendererPropsrefreshcellRendererParamsframework adapters (React, Vue, Angular, Svelte, vanilla)

Acceptance criteria

  • Props include value, formattedValue, row, column, rowIndex, api and params, and are identical across adapters. (pending)
  • Templates unmount cleanly when rows are recycled out, with no listener leaks (verified by a heap test). (pending)
  • An optional refresh(params) hook allows reuse without remounting. (pending)
  • Errors thrown in a renderer are contained to that cell. (pending)