Cross-grid references (candidate)
This is an experimental candidate that lets separate WarGrid instances on the same page share a formula engine and reference each other by grid ID, for example =[orders]!SUM(total) or =orders!C2. It enables dashboards where a KPI grid aggregates a detail grid.
Planned. This page shows the specification from issue #192. The live example, source for every framework and the API reference replace it when the feature ships.
Live example
Two grids, Orders and KPIs, share one engine. The KPIs grid holds =SUM(orders!D2:D50).
Expected behavior
Edits in Orders update the KPIs immediately. Destroying Orders turns the KPI cells into #REF! and fires externalReferenceBroken. Re-mounting it restores the values.
Planned API surface
option: formulaEngine (shared instance)option: gridIdfunction: createFormulaEngine()event: externalReferenceBrokenAcceptance criteria
- Grids that share an engine have one dependency graph. (pending)
- Destroying a grid removes its nodes and does not leak memory (verified with a heap test). (pending)
- The grid ID must be unique per engine, and duplicates throw a clear error. (pending)
- The docs mark the API as experimental and describe the evaluation outcome. (pending)