The grid (core) ยท console.warn
detail is enabled but neither `rows` nor `render` was supplied; expanding a master would show an empty region, so it stays off.
Printed by The grid (core), prefixed [lattice], since 1.4.0.
Warnings reference › detail.rows
- Identifier
detail.rows- Raised by
- The grid (core)
- Since
- 1.4.0
What happened
A detail region needs something to put in it: either rows (a nested grid) or render (your own content). With neither, expanding a row would open an empty panel, which reads as a defect rather than as a missing option - so the feature is switched off instead and rows do not expand at all.
The fix
Supply detail.rows for a nested grid, or detail.render to draw the panel yourself.
The smallest fix
createGrid(el, { detail: { rows: (row) => row.data.lines } });
Reference
Covered in full at the API reference.