The grid (rendering) · console.warn
Column '{colId}' template looks like it contains control flow. Templates have none by design: use cell.classWhen for conditional styling and a function renderer for conditional content.
Printed by The grid (rendering), prefixed [lattice], since 1.0.1.
Warnings reference › tpl-control:*
- Identifier
tpl-control:*- Raised by
- The grid (rendering)
- Since
- 1.0.1
What happened
The template contains something that looks like a Handlebars or Jinja block - {{#if}}, {% … %}, {{each}}. Lattice's cell templates are interpolation only, with no control flow at all, so the block is not interpreted: it renders as text or as an unknown binding. The line exists because people arrive expecting Handlebars.
The fix
Use cell.classWhen for conditional styling, and a function or component renderer for conditional content.
Reference
Covered in full at the API reference.