blockly > ToolboxItemNavigationPolicy > getParent
ToolboxItemNavigationPolicy.getParent() method
Returns the parent of the given toolbox item.
Signature:
getParent(current: IToolboxItem): IFocusableNode | null;
Parameters
Parameter | Type | Description |
|---|---|---|
current | The toolbox item to return the parent of. |
Returns:
IFocusableNode | null
The parent toolbox item of the given toolbox item, if any.