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;
    get horizontalOffset(): number;
    get verticalOffset(): number;
    scrollTo(rowOffset?: number, columnOffset?: number): void;
    scrollToItem(rowIndex?: number, columnIndex?: number, option?: ScrollToOption): void;
}

Accessors

Methods