WarUI

Exporting tree data with hierarchy

GRID-A17-F20P2beyond-baselinePlanned

Exports tree data to CSV or JSON while preserving the hierarchy. Options include an indented label, a level column, a path column or nested JSON, with a choice of expanded-only or all rows. Exported data then remains meaningful outside the grid.

Planned. This page shows the specification from issue #197. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

An aggregated budget tree with an export panel and a preview pane.

Expected behavior

The preview shows the output for the chosen format. Download produces a file that matches the preview.

Planned API surface

exportCsvexportJsontreeExportFormat ('indent' | 'levelColumn' | 'pathColumn' | 'nested')exportOnlyExpandedincludeAggregates

Acceptance criteria

  • The level column is 1-based, consistent with aria-level (pending)
  • Nested JSON round-trips through the F01 import (pending)
  • Unloaded lazy children are excluded, with a documented note (pending)
  • CSV escapes delimiters and formula-injection characters (pending)