blockly > BlockNavigationPolicy

BlockNavigationPolicy class

Set of rules controlling keyboard navigation from a block.

Signature:

export declare class BlockNavigationPolicy implements INavigationPolicy<BlockSvg> 

Implements: INavigationPolicy<BlockSvg>

Methods

Method Modifiers Description
getFirstChild(current) Returns the first child of the given block.
getNextSibling(current) Returns the next peer node of the given block.
getParent(current) Returns the parent of the given block.
getPreviousSibling(current) Returns the previous peer node of the given block.
isApplicable(current) Returns whether the given object can be navigated from by this policy.
isNavigable(current) Returns whether or not the given block can be navigated to.