The grid (rendering) ยท console.warn
Column '{colId}' has a variant object with neither 'map' nor 'when'. Use a token string, { map }, { when } or a function.
Printed by The grid (rendering), prefixed [lattice], since 1.0.1.
Warnings reference › variant-shape:*
- Identifier
variant-shape:*- Raised by
- The grid (rendering)
- Since
- 1.0.1
What happened
The variant is an object, but it holds neither of the two things an object form can be, so there is nothing to resolve a token from. Every cell paints with the fallback variant. It is named rather than silently treated as neutral, because a column that was meant to be colour-coded and is not looks like a data problem.
The fix
Use { map: { value: 'token' } } for exact values, or { when: [{ op, value, variant }] } for ordered rules.
Reference
Covered in full at the API reference.