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
componentError: GridComponentErrorDetailsUsage 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.
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
- Customize cell appearance
Cell renderers change how data is displayed. Use them for status badges, links, and action buttons while retaining the original values for sorting and filtering.