Lattice Grid Buy a licence

The grid (rendering) · console.warn

{where} must be a boolean, an array of items or a (params, defaults) => items function; got {type}. Ignoring it.

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

Warnings referencemenu-layer:*

Identifier
menu-layer:*
Raised by
The grid (rendering)
Since
1.51.0

What happened

A menu customisation hook was given something it cannot use, so it was ignored and the default items are shown. The key names which hook it was, so a column menu and a cell menu are separate lines. Ignoring the value silently is how a menu that never appears becomes an afternoon's debugging.

The fix

Pass true to keep the defaults, an array of items to append, or a (params, defaults) => items function to build the list.

The smallest fix

createGrid(el, { columnMenu: (params, defaults) => [...defaults, { label: 'Pin', action: () => … }] });

Reference

Covered in full at the API reference.