WarUI

Raw versus formatted values and export value getters

GRID-A20-F05P0baselinePlanned

Chooses whether each cell exports its raw data value or its displayed, formatted text. A per-column exportValueGetter supports custom transforms. Raw values keep data machine-readable, while formatted values match what users see.

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 currency, percentage, date and status-label columns, where status labels are mapped from codes.

Expected behavior

The preview shows 1234.5 versus '$1,234.50' and an ISO date versus a locale date, depending on the mode. The status column follows its override.

Planned API surface

exportOptions.valueMode'raw' | 'formatted'column.exportValueGettercolumn.exportFormatter

Acceptance criteria

  • valueMode:'raw' exports underlying field values. (pending)
  • valueMode:'formatted' exports the text produced by the column formatter. (pending)
  • exportValueGetter({row,column,value,format}) takes precedence over valueMode for its column. (pending)
  • The getter receives the target format so it can vary output per format. (pending)
  • Getter exceptions are caught, reported via an exportError event, and the cell becomes empty. (pending)