The grid (rendering) ยท console.warn
kpis[].filter needs `{ name: string, where: ...
Printed by The grid (rendering), prefixed [lattice], since 1.111.0.
Warnings reference › kpis.filter:*
- Identifier
kpis.filter:*- Raised by
- The grid (rendering)
- Since
- 1.111.0
What happened
A kpis tile carried a filter that is not an object with a non-empty string name and a where function, so the tile has nothing to register on a click. The tile still renders and still fires its onClick; it just does not toggle a filter.
The fix
Give the tile filter: { name: 'overdue', where: (row) => row.status === 'overdue' }.
The smallest fix
kpis: [{ title: 'Overdue', fn: 'count', filter: { name: 'overdue', where: (row) => row.status === 'overdue' } }]
Reference
Covered in full at the API reference.