MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / scrollToCell

Method scrollToCell

lib/components/Grid/types.ts:545–545  ·  view source on GitHub ↗

* Ensure the specified column and/or row is visible (scrolling if necessary). * This method can be used to safely scroll back to a cell that a user has scrolled away from even if it was previously scrolled to. * * The `align` parameter (default "auto") controls the alignment of the cell:

(params: {
    align?: Alignment;
    columnIndex?: number;
    rowIndex?: number;
  })

Source from the content-addressed store, hash-verified

543 * If the `Grid` has a `scrollElement`, the scroll element (e.g. the window) is scrolled vertically instead.
544 */
545 scrollToCell(params: {
546 align?: Alignment;
547 columnIndex?: number;
548 rowIndex?: number;

Callers 3

renderAndScrollToCellFunction · 0.65
Grid.test.tsxFile · 0.65
ScrollingCellFunction · 0.65

Calls

no outgoing calls

Tested by 2

renderAndScrollToCellFunction · 0.52
ScrollingCellFunction · 0.52