API REFERENCE
csvImported
Emitted after CSV import completes. Report the actual applied row and column counts to users.
What does this API do?
Emitted after CSV import completes. Report the actual applied row and column counts to users.
Exact input and result types
csvImported: { rowCount: number; columnCount: number }Usage flow
Subscribe with grid.addEventListener('csvImported', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.
const controller = new AbortController();
grid.addEventListener('csvImported', event => {
console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();Feature explanations and examples
- Import CSV
CSV import converts delimited text into new columns and rows. Unlike a transaction that appends rows, importCsvText replaces columnDefs and rowData.