WarUI

Basic CSV export

GRID-A20-F01P0baselinePlanned

Exports grid data to a CSV file in one call. The exported columns, headers and row order match what the user sees. This is the entry point for all export features and sets the default file naming and download behaviour.

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

Live example

Grid with 50 order rows and 6 columns (id, customer, date, amount, status, notes). An 'Export CSV' button sits above the grid.

Expected behavior

Clicking Export downloads a .csv file. The file has one header line and 50 data lines. Columns appear in the current visual order, and values follow the current sort.

Planned API surface

exportData()exportOptions.formatexportOptions.fileNamecolumn.exportablecolumn.exportHeader

Acceptance criteria

  • exportData({format:'csv'}) triggers a download named '<fileName>.csv'. (pending)
  • The column order in the file matches the current visual column order, including any reordering by the user. (pending)
  • Row order matches the current sort state. (pending)
  • Columns with exportable:false are omitted. (pending)
  • column.exportHeader overrides the header text when set; otherwise the displayed header is used. (pending)
  • With includeHeader:false, the file contains only data lines. (pending)