createSmoothScrollBridgePlugin

Makes scroll state available to cell templates through their grid key

Available since @roku-sdk/flex-grid 3.3.0

import {
    createSmoothScrollBridgePlugin,
} from "@roku-sdk/flex-grid/smooth-scroll-bridge";
createSmoothScrollBridgePlugin<T>(): InitGridPlugin<T>

Description

Makes scroll state available to cell templates through their grid key.

Add the plugin to each grid whose cells read the bridge helpers. State is isolated per grid and removed when the plugin's reactive owner is disposed.

Return values

A plugin to add to the grid's plugins array.

Example

import { createSmoothScrollBridgePlugin } from "@roku-sdk/flex-grid/smooth-scroll-bridge";
const plugin = createSmoothScrollBridgePlugin<Movie>();

What’s Next

Did this page help you?