The grid (rendering) ยท console.warn
Column '{colId}' uses decoration 'icon' without a 'name', 'bands' or 'iconSet'. Give an icon name, a value->name map, a bands list, or a built-in iconSet ({sets}).
Printed by The grid (rendering), prefixed [lattice], since 1.16.0.
Warnings reference › dec-icon:*
- Identifier
dec-icon:*- Raised by
- The grid (rendering)
- Since
- 1.16.0
What happened
An icon decoration takes its glyph from one of three places - a static or value-mapped name, a bands list, or a built-in iconSet - and none of them was given, so there is no way to choose a glyph and nothing is drawn. Only the absence of all three is reported; any one of them is enough.
The fix
Give one of the three.
The smallest fix
cell: { decoration: { type: 'icon', iconSet: 'traffic', bands: [{ min: 0, icon: 'circle-red' }] } }
Reference
Covered in full at the API reference.