Lattice Grid Buy a licence

The grid (rendering) ยท console.warn

createMeter needs a document; it draws DOM.

Printed by The grid (rendering), prefixed [lattice], since 1.111.0.

Warnings reference › meter.document

Identifier
meter.document
Raised by
The grid (rendering)
Since
1.111.0

What happened

createMeter() found no document to build its elements in. It returns an inert handle and draws nothing.

The fix

Call it in a browser, or pass a container element that belongs to a document.

The smallest fix

createMeter({ container: el, label: 'Capacity', value: 30 });

Reference

Covered in full at the API reference.