Handsontable celltype dev

From handsontable/handsontable · View interactive version

Handsontable celltype dev is an AI agent skill from the GitHub repository handsontable/handsontable. Use when creating or modifying a Handsontable cell type that composes an editor, renderer, and validator into a reusable configuration object registered by name

How to use this skill

Skill file

Handsontable Cell Type Development

Structure

A cell type is a composition object bundling editor, renderer, and validator under one name:

export const MyCellType = {
  CELL_TYPE: 'myType',
  editor: MyEditor,
  renderer: myRenderer,
  validator: myValidator,
  // Optional:
  valueSetter: customSetter,
  valueGetter: customGetter,
  valueFormatter: customFormatter,
  dataType: 'myType',
};

Files: src/cellTypes/{typeName}/{typeName}.ts (the object) and index.ts (re-exports). Registry: src/cellTypes/registry.ts.

Registration

  1. registerCellType(MyCellType) (import from ../../cellTypes/registry).
  2. Export from src/cellTypes/index.ts so the full bundle has it.
  3. Add the type string to the type option's accepted values in src/dataMap/metaManager/metaSchema.ts.
  4. Add its feature manifest entry to src/cellTypes/features.json: cell:<type_in_snake_case>, licensing: "token", gate: "report", and a requires.allOf that lists exactly the editor:, renderer:, and validator: entries the cell type file imports (the unit suite compares them). A new editor, renderer, or validator also gets its own entry (see those skills). Run npm run generate:feature-manifest --prefix handsontable and commit what it writes. Rules: src/featureManifest/AGENTS.md.

Key rules

Reference implementations

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.