The grid (rendering) ยท console.warn
{kind} '{id}' names header renderer '{name}', which is not registered. Register it in config.components.
Printed by The grid (rendering), prefixed [lattice], since 1.4.0.
Warnings reference › header-name:*:*
- Identifier
header-name:*:*- Raised by
- The grid (rendering)
- Since
- 1.4.0
What happened
A column or column group named a header renderer by name and nothing is registered under it, so no custom header is used and the stock heading is drawn.
The fix
Register the component in config.components, or pass the function directly.
The smallest fix
createGrid(el, { components: { unitHeader: renderUnitHeader }, columns: [{ id: 'qty', header: { render: 'unitHeader' } }] });
Reference
Covered in full at the API reference.