{hero}

scroller.toPosition()

Since: Scroller 1.5.0

Scroll to a specific row display index.
Please note - this property requires the Scroller extension for DataTables.

Description

This method can be used to move the scrolling position to a given row in the current display order. If you know the row you wish to scroll to, use the row().scrollTo() method - this method is useful for cases where you don't know what row is in the position you wish to scroll to!

Type

function scroller.toPosition( index [, animate ] )

Description:

Move the display to show the row at the index given.

Parameters:
Returns:

DataTables API instance for chaining

Example

Animated scroll to display index 100:

table.scroller.toPosition(100);

Related

The following options are directly related and may also be useful in your application development.