# rowHoverChanged

Emitted when the stateful hovered row changes. Unlike CSS-only hover, the app can read this state.

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

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

## What does this API do?

Emitted when the stateful hovered row changes. Unlike CSS-only hover, the app can read this state.

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

## Exact input and result types

```typescript
rowHoverChanged: GridRowHoverChangedDetail
```

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

## Usage flow

Subscribe with grid.addEventListener('rowHoverChanged', 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('rowHoverChanged', event => {
  console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();
```

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

## Read related types

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

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

## Feature explanations and examples

- [Follow rows](https://grid.syidax.com/docs/features/row-hover.md) — Row hover highlights the row under the pointer to help users read wide tables. It differs from row selection and does not automatically select a row for business operations.
