# componentError

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

Canonical: https://grid.syidax.com/docs/events/componentError/

<a id="meaning"></a>

## What does this API do?

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

<a id="contract"></a>

## Exact input and result types

```typescript
componentError: GridComponentErrorDetails
```

<a id="usage"></a>

## 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();
```

<a id="types"></a>

## Read related types

- [GridComponentErrorDetails](https://grid.syidax.com/docs/types/GridComponentErrorDetails.md)

<a id="recipes"></a>

## Feature explanations and examples

- [Customize cell appearance](https://grid.syidax.com/docs/features/custom-cells.md) — 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.
