Handsontable renderer dev

From handsontable/handsontable · View interactive version

Handsontable renderer dev is an AI agent skill from the GitHub repository handsontable/handsontable. Use when creating or modifying a Handsontable cell renderer function that controls how cell content is displayed in the DOM - pure functions that take cell data and modify TD element

How to use this skill

Skill file

Handsontable Renderer Development

Signature

Renderers are pure functions, no class or state:

function myRenderer(hotInstance, TD, row, col, prop, value, cellProperties) {
  baseRenderer.apply(this, arguments);
  // Modify TD element here
}

Call baseRenderer first: it applies the readonly and invalid CSS classes, ARIA attributes, and other standard cell setup.

Rules

Files

src/renderers/{rendererName}/
  {rendererName}.ts    # Renderer function
  index.ts             # Re-exports

Registry: src/renderers/registry.ts.

import { registerRenderer } from '../../renderers/registry';
registerRenderer('myRenderer', myRenderer);

A new built-in renderer also needs its entry in src/renderers/features.json (renderer:<name_in_snake_case>, licensing: "none"; copy a neighbor), and a cell type that uses it lists it in its requires.allOf. The unit suite fails until both exist. Run npm run generate:feature-manifest --prefix handsontable and commit what it writes. Rules: src/featureManifest/AGENTS.md.

Reference implementations

Performance

Renderers run for every viewport cell on every render cycle (fast and slow).

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.