gridScrollMs
Reads the grid's current per-step scroll duration in milliseconds
Available since @roku-sdk/flex-grid 3.3.0
import { gridScrollMs } from "@roku-sdk/flex-grid/smooth-scroll-bridge";gridScrollMs(gridKey: object | undefined): numberDescription
Reads the grid's current per-step scroll duration in milliseconds.
Read inside a reactive scope to track duration changes. Missing keys and grids without the bridge plugin return zero.
Parameters
| Name | Type | Description |
|---|---|---|
gridKey | object | undefined | The grid identity supplied in cell render props, or undefined. |
Return values
The scroll duration in milliseconds, or zero for an unregistered grid.
Example
const duration = () => gridScrollMs(props.gridKey);Updated about 3 hours ago
What’s Next
Did this page help you?