API REFERENCE

componentError

Reports custom component initialization or invocation errors. Handle them by target and phase rather than ignoring them.

What does this API do?

Reports custom component initialization or invocation errors. Handle them by target and phase rather than ignoring them.

Exact input and result types

typescript
componentError: GridComponentErrorDetails

Usage flow

Subscribe with grid.addEventListener('componentError', handler). The result is in event.detail, and event names are case-sensitive. Remove subscriptions when disposing of the view.

javascript
const controller = new AbortController();
grid.addEventListener('componentError', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();

Read related types

Feature explanations and examples