SYIDAX / DATA GRID

Follow rows

Highlight the row under the pointer and receive change events.

Get started
Follow rowsSample order data
120 rows
Loading Grid…

Options

Changes below update the Grid and code immediately.

Latest result

Slowly move the pointer across orders and inspect the background of the hovered row.

View code
Current preview

Usage guide

#

Make wide tables easier to read by highlighting the row under the pointer.

Try it yourself

  1. Move between rows

    Slowly move the pointer across orders and inspect the background of the hovered row.

  2. Compare with selection

    Select a row by checkbox, then hover over another row. Selection and hover are different states.

  3. Connect app reactions

    Subscribe to rowHoverChanged in stateful mode to connect the hovered row to another information panel.

Expected results

Follow the hovered row more easily while reading. Use its ID to connect other app UI.

This example uses stateful mode. The website event table omits Hover events to avoid filling the log with frequent pointer movements.

Useful terms

css-only
A mode displaying only visual effects based on pointer position.
stateful
A mode also exposing the hovered row through state and events.

API reference

#

Other properties1
Attribute / PropertyType / DefaultDescription
rowHover
'css-only' | 'stateful' | 'off'Default: 'css-only'Row hover behaviour: CSS-only, stateful eventing, or disabled.
Events1
EventsDetail typeDescription
GridRowHoverChangedDetailFires when the hovered row changes in stateful hover mode.
Methods2
Method / ArgumentsReturn typeDescription
rowId: string | number | null
Promise<void>Set or clear the hovered row id.
Promise<string | number | null>Read the currently hovered row id.