Multiple Independent Grids on One Page
Shows two or more WarGrid instances on the same page, each with fully isolated state, DOM ids, styles and keyboard focus. This confirms that sorting, filtering, selection or column changes in one grid never affect another unless the user explicitly links them. It is the foundation for every multi-grid feature in this area.
Planned. This page shows the specification from issue #206. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Two grids, Orders (50 rows) and Inventory (80 rows), are stacked vertically. Each has sorting, filtering and row selection enabled.
Expected behavior
Actions in any grid change only that grid's state JSON. Adding or removing a grid does not reset the other grids. Focus and the active cell are tracked separately for each grid.
Planned API surface
gridIdcreateGriddestroygetStateinstanceRegistryAcceptance criteria
- Every generated DOM id is unique across all instances on the page (pending)
- Sorting grid A leaves the getState() output of grid B unchanged (pending)
- Destroying one instance removes its listeners and DOM nodes and leaves other instances working (pending)
- Two instances created without an explicit gridId each receive a distinct auto-generated id (pending)