Lattice Grid Buy a licence

The grid (rendering) ยท console.warn

Column '{colId}' has a variant of unsupported type '{type}'.

Printed by The grid (rendering), prefixed [lattice], since 1.0.1.

Warnings referencevariant-type:*

Identifier
variant-type:*
Raised by
The grid (rendering)
Since
1.0.1

What happened

cell.variant was not a token string, an object or a function, so no variant could be resolved and every cell in the column paints with the default variant.

The fix

Give a token name, a { map }, a { when } list, or a function returning a token.

The smallest fix

cell: { decoration: 'pill', variant: { map: { open: 'info', late: 'danger' } } }

Reference

Covered in full at the API reference.