Skip to main content

Home > blockly > navigateBlock

Returns the next navigable item relative to the provided block child.

Signature:

export declare function navigateBlock(current: Icon | Field | RenderedConnection | BlockSvg, delta: number): IFocusableNode | null;

Parameters

ParameterTypeDescription
currentIcon | Field | RenderedConnection | BlockSvgThe navigable block child item to navigate relative to.
deltanumberThe difference in index to navigate; positive values navigate forward by n, while negative values navigate backwards by n.

Returns:

IFocusableNode | null

The navigable block child offset by delta relative to current.