blockly > Navigator > getParent

Returns the parent of the given object instance, if any.

Signature:

getParent(current: IFocusableNode): IFocusableNode | null;

Parameters

Parameter Type Description
current IFocusableNode The object to retrieve the parent of.

Returns:

IFocusableNode | null

The parent node of the given object, if any.