Skip to content

ScrollToRowOptions

Since v1.23.0

Options for the PublicGrid.scrollToRow method.

grid.scrollToRow(42, { align: 'center', behavior: 'smooth' });
PropertyTypeDescription
align?center | start | end | nearestWhere to position the row in the viewport.
behavior?smooth | instantScroll behavior.

Where to position the row in the viewport.

  • 'start' — top of the viewport
  • 'center' — vertically centered
  • 'end' — bottom of the viewport
  • 'nearest' — scroll only if the row is outside the viewport (default)

Scroll behavior.

  • 'instant' — jump immediately (default)
  • 'smooth' — animate the scroll