The grid (core) ยท console.warn
unknown column preset "{name}"; ignoring
Printed by The grid (core), prefixed [lattice], since 1.6.0.
Warnings reference › preset:*
- Identifier
preset:*- Raised by
- The grid (core)
- Since
- 1.6.0
What happened
A column named a preset that is not registered. It contributes nothing to the resolved column, so the settings the preset would have supplied - a type, a format, an alignment - are all absent and the column falls back to its own definition and the type defaults.
The fix
Register the preset, or name one that exists.
The smallest fix
createGrid(el, { presets: { money: { type: 'number', format: { style: 'currency' } } } });
Reference
Covered in full at the API reference.