The grid (core) ยท console.warn
column "{colId}" has an invalid `lookup.opti...
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, a function returning one (or a promise of one), nor a { router, predicate } route, 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, a function that returns one (or a promise of one) for lazy loading, or { router, predicate, map? } to keep it fed by a live data-router route.
The smallest fix
columns: [{ id: 'status', type: 'lookup', lookup: { options: () => fetch('/statuses').then((r) => r.json()) } }]
Reference
Covered in full at the API reference.