blockly > FlyoutNavigationPolicy

FlyoutNavigationPolicy class

Generic navigation policy that navigates between items in the flyout.

Signature:

export declare class FlyoutNavigationPolicy<T> implements INavigationPolicy<T> 

Implements: INavigationPolicy<T>

Constructors

Constructor Modifiers Description
(constructor)(policy, flyout) Creates a new FlyoutNavigationPolicy instance.

Methods

Method Modifiers Description
getFirstChild(_current) Returns null to prevent navigating into flyout items.
getNextSibling(current) Returns the next item in the flyout relative to the given item.
getParent(current) Returns the parent of the given flyout item.
getPreviousSibling(current) Returns the previous item in the flyout relative to the given item.
isApplicable(current) Returns whether the given object can be navigated from by this policy.
isNavigable(current) Returns whether or not the given flyout item can be navigated to.