Custom ref handle returned by VirtualGrid that exposes imperative methods

Use React.useRef<VirtualGridProxy>(null) to create a ref.

interface VirtualGridProxy {
    scrollTo(rowOffset: number, columnOffset: number): void;
    scrollToItem(rowIndex: number, columnIndex: number): void;
}

Methods

  • Scrolls the list so that the specified item is visible

    Parameters

    • rowIndex: number

      Row of item to scroll to

    • columnIndex: number

      Column of item to scroll to

    Returns void