Skip to main content

Home > blockly > WorkspaceNavigationPolicy > getFirstChild

WorkspaceNavigationPolicy.getFirstChild() method

Returns the first child of the given workspace.

Signature:

getFirstChild(current: WorkspaceSvg): IFocusableNode | null;

Parameters

ParameterTypeDescription
currentWorkspaceSvgThe workspace to return the first child of.

Returns:

IFocusableNode | null

The top block of the first block stack, if any.