matchRowWhen
Matches when a predicate on the row index returns true
import { matchRowWhen } from "@roku-sdk/flex-grid/compose-h-strategy";matchRowWhen(predicate: (row: number) => boolean): HStrategyMatcherDescription
Matches when a predicate on the row index returns true.
Parameters
| Name | Type | Description |
|---|---|---|
predicate | (row: number) => boolean | A predicate receiving the zero-based data row index. |
Return values
A matcher that delegates to the row predicate.
Example
import { matchRowWhen } from "@roku-sdk/flex-grid/compose-h-strategy";
const matches = matchRowWhen(row => row >= 2);Updated about 4 hours ago
What’s Next
Did this page help you?