dashboard ยท console.warn
createDashboard: there is no createLayout on...
Printed by dashboard, prefixed [lattice], since 1.77.0.
Warnings reference › dashboard:layout
- Identifier
dashboard:layout- Raised by
- dashboard
- Since
- 1.77.0
What happened
Every panel sits in a window of a modules/layout layout, and the dashboard imports no module itself: it was handed no createLayout, and there is no LatticeGridLayout global on the page. Nothing was built.
The fix
Import createLayout and pass it in the third argument, or load the layout's script before the dashboard's.
The smallest fix
createDashboard(el, spec, { createLayout, createGrid, createHeadlessGrid, createChart });
Reference
Covered in full at the API reference.