Export lifecycle events and cancellation
Emits exportStart (cancellable and mutable), exportProgress, exportComplete and exportError. Apps can enforce permissions, add audit logging, alter options and show progress, all without forking the grid.
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 event log panel and a 'Simulate non-admin' toggle.
Expected behavior
The log shows the start, progress percentages and complete events with the row count. Non-admin mode omits the column, and Block prevents the export with a message.
Planned API surface
exportStart eventexportProgress eventexportComplete eventexportError eventevent.preventDefault()event.optionsAbortSignal exportOptions.signalAcceptance criteria
- exportStart fires before any data processing, and changes to event.options take effect. (pending)
- preventDefault() in exportStart rejects the promise with an ExportCancelled error. (pending)
- exportProgress fires with {processedRows,totalRows} at least every 10% for exports of 1000 rows or more. (pending)
- Aborting via the signal stops processing and fires exportError with reason 'aborted'. (pending)
- exportComplete includes format, scope, rowCount, durationMs and warnings. (pending)