The grid (core) ยท console.warn
column "{colId}" has an invalid `lookup.options`; expected an array or a function
Printed by The grid (core), prefixed [lattice], since 1.0.1.
Warnings reference › lookup:options:*
- Identifier
lookup:options:*- Raised by
- The grid (core)
- Since
- 1.0.1
What happened
lookup.options was neither an array of options nor a function returning one (or a promise of one), so there is nothing to look values up in. The lookup resolves to an empty option list: every value renders raw and the select editor has nothing to offer.
The fix
Give options an array, or a function that returns one (or a promise of one) for lazy loading.
The smallest fix
columns: [{ id: 'status', type: 'lookup', lookup: { options: () => fetch('/statuses').then((r) => r.json()) } }]
Reference
Covered in full at the API reference.