Skip to main content

Home > blockly > navigateStacks

Returns the next/previous stack relative to the given element's stack.

Signature:

export declare function navigateStacks(current: ISelectable, delta: number): IFocusableNode | null;

Parameters

ParameterTypeDescription
currentISelectableThe element whose stack will be navigated relative to.
deltanumberThe 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.