Lattice Grid

Gantt ยท console.warn

gantt: dataBands need createGrid to render -...

Printed by Gantt, prefixed [lattice], since 1.127.0.

Warnings reference › gantt-databand-no-creategrid

Identifier
gantt-databand-no-creategrid
Raised by
Gantt
Since
1.127.0

What happened

mountSplit was given one or more dataBands but no createGrid. A data band has no plain-DOM fallback (unlike the workload/histogram bands, which draw lightweight rows without one), so without a grid factory none of its bands build and getDataBandTable returns null.

The fix

Inject the grid factory: mountSplit(el, { createGrid, dataBands }).

The smallest fix

import { createGrid } from '@toclocoinc/lattice-grid';
gantt.mountSplit(el, { createGrid, dataBands: [...] });

Reference

Covered in full at the API reference.