Custom ref handle returned by VirtualGrid that exposes imperative methods

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

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

Accessors

Methods

  • Scrolls the list so that the specified item is visible

    Parameters

    • OptionalrowIndex: number

      Row of item to scroll to

    • OptionalcolumnIndex: number

      Column of item to scroll to

    Returns void