API REFERENCE
rowHoverChanged
Emitted when the stateful hovered row changes. Unlike CSS-only hover, the app can read this state.
What does this API do?
Emitted when the stateful hovered row changes. Unlike CSS-only hover, the app can read this state.
Exact input and result types
rowHoverChanged: GridRowHoverChangedDetailUsage 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.
const controller = new AbortController();
grid.addEventListener('rowHoverChanged', event => {
console.log(event.detail);
}, { signal: controller.signal });
// On view disposal: controller.abort();Read related types
Feature explanations and examples
- Follow rows
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.