WarUI

Export adapter registry

GRID-A20-F23P2beyond-baselinePlanned

Exposes a registry where apps add custom export formats (for example Markdown, XML or an internal format) that reuse the core pipeline: scope, columns, value resolution, sanitization hooks, events and output targets. Built-in formats are themselves registered adapters and can be replaced.

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 an export menu listing the built-in formats and a 'Register Markdown adapter' button.

Expected behavior

After registration, 'Markdown' appears in the menu and exports a valid Markdown table. Unregistering removes it.

Planned API surface

registerExportAdapter()unregisterExportAdapter()getExportAdapters()ExportAdapter interface: id, label, extension, mimeType, binary, begin(), writeRows(), end()adapter.capabilities

Acceptance criteria

  • Adapters receive a normalized model (header matrix, typed rows with kind flags) and never raw grid internals. (pending)
  • capabilities declares support for groupedHeaders, totals, formulas and streaming, and unsupported options produce warnings. (pending)
  • Registering a duplicate id fails unless {replace:true} is given. (pending)
  • Custom adapters work with every output target and event from F15 and F16. (pending)
  • Adapters can opt into formula sanitization through the capabilities flag. (pending)