Tabs ยท console.warn
tabs: tab "{id}" - view must be a factory function, (el, config) => instance, such as createKanban or createKPI; got {type}. This tab is mounted as an ordinary grid.
Printed by Tabs, prefixed [lattice], since 1.59.0.
Warnings reference › tabs.view.type:*
- Identifier
tabs.view.type:*- Raised by
- Tabs
- Since
- 1.59.0
What happened
A tab descriptor's view was not a function. view is how a tab hosts something other than a grid - a kanban board, a KPI strip, a chart - and the module takes the factory itself rather than a name, so a string or an object cannot be resolved to one. The value was not coerced and the tab was mounted as the plain grid it would otherwise have been.
The fix
Import the viewer's factory and pass the function.
The smallest fix
import { createKanban } from '@toclocoinc/lattice-grid/modules/kanban';
tabs: [{ id: 'board', title: 'Board', view: createKanban }]
Reference
Covered in full at the API reference.