resolveGridPlugins

Resolves plugin entries during grid initialization

Available since @roku-sdk/flex-grid 3.3.0

import { resolveGridPlugins } from "@roku-sdk/flex-grid";
resolveGridPlugins<T>(plugins?: GridPluginEntry<T>[]): ResolvedGridPlugins<T>

Deprecated.

Plugin resolution is managed by createFlexGrid. Will be removed from the public exports in the next major version.

Description

Resolves plugin entries during grid initialization.

Parameters

NameTypeDescription
plugins?GridPluginEntry<T>[]

Return values

Returns ResolvedGridPlugins<T>.

Types

ResolvedGridPlugins

Deprecated.

Plugin resolution is managed by createFlexGrid. Will be removed from the public exports in the next major version.

Resolved plugin collections used during grid initialization.

NameTypeDescription
capabilitiesSet<"focusVisual">Union of every init plugin's provides; exposed to plugins as internals.capabilities.
cellTemplatesPluginCellTemplate<T>[]Cell templates contributed by init plugins, in init order. Empty for the common case, so the routing wrapper can be skipped entirely.
initPluginsGridInitPlugin<T>[]init call order: each InitGridPlugin in plugins[] source order (excluding perf).
perf?PerfPlugin
reservedRowTopnumberSum of every init plugin's reservedRowTop; folded into the engine row pitch.
rowCardsWrapsRowCardsWrap[]Every init plugin's wrapRowCards, in plugins[] order. Empty for the common case.

GridInitPlugin

Plugins that receive init(internals).

type GridInitPlugin<T = unknown> = InitGridPlugin<T>;

What’s Next

Did this page help you?