Custom Cell Types Registry
Developers register named cell types that bundle a renderer, an editor, a formatter, a parser and a comparator. Columns then refer to the type by name. This allows rich domain cells, such as a currency cell or a rating cell, to be reused across grids.
Planned. This page shows the specification from issue #206. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
A grid with registered 'rating' and 'currency' cell types.
Expected behavior
Cells render and edit according to their registered type. Sorting uses the type's comparator. Changing the locale reformats currency values.
Planned API surface
registerCellTypecellTyperenderereditorformatterparsercomparatorunregisterCellTypeAcceptance criteria
- Referring to an unknown type falls back to the text type and logs a warning (pending)
- A type registered at the page level is available to every grid (pending)
- A type registered on a grid overrides the page-level type for that grid only (pending)