Lattice Grid Buy a licence

dataview ยท console.warn

"{name}" is not a dataview event; expected o...

Printed by dataview, prefixed [lattice], since 1.103.2.

Warnings reference › dataview:event:*

Identifier
dataview:event:*
Raised by
dataview
Since
1.103.2

What happened

createDataView's view.on() was given an event name the view never emits, so the handler can never run. The subscription is still made; the typo is named.

The fix

Use one of the documented events: itemClick, itemDoubleClick, beforeDrop, afterDrop, dragOut, selectionChange, input, change.

The smallest fix

view.on('itemClick', (e) => console.log(e.id));

Reference

Covered in full at the API reference.