KPI ยท console.warn
setRows on a grid-bound KPI panel is ignored; the rows come from the bound grid.
Printed by KPI, prefixed [lattice], since 1.35.0.
Warnings reference › kpi:setRows-gridbound
- Identifier
kpi:setRows-gridbound- Raised by
- KPI
- Since
- 1.35.0
What happened
setRows() was called on a panel created with a grid. As with apply(), the bound grid is the panel's only source of rows, so the array was ignored and the panel still shows the grid's rows.
The fix
Set the rows on the grid, or create the panel without grid and drive it with setRows.
The smallest fix
createKPI(el, { rows, tiles }); // unbound: setRows() drives it
Reference
Covered in full at the API reference.