navigateStacks() function
Returns the next/previous stack relative to the given element's stack.
Signature:
export declare function navigateStacks(current: ISelectable, delta: number): IFocusableNode | null;
Parameters
Parameter | Type | Description |
---|---|---|
current | ISelectable | The element whose stack will be navigated relative to. |
delta | number | The difference in index to navigate; positive values navigate to the nth next stack, while negative values navigate to the nth previous stack. |
Returns:
IFocusableNode | null
The first element in the stack offset by delta
relative to the current element's stack, or the last element in the stack offset by delta
relative to the current element's stack when navigating backwards.