Skip to content

scrollToDataIndex(dataIndex, animationDuration?) ​

scrollToDataIndex scroll to the specified data index position.

Reference ​

typescript
(dataIndex: number, animationDuration?: number) => void

Parameters ​

  • dataIndex Data index.
  • animationDuration Animation duration. If it is less than or equal to 0, there is no animation.

Returns ​

scrollToDataIndex returns undefined .

Usage ​

Basic usage ​