NavigationBar.isAnimation

Syntax

isAnimation();

Description

The isAnimation method returns whether animation is played in the side panel.

Comments

The method returns True if animation is performed in the side panel, otherwise it returns False.

Example

To execute the example, the page must contain the NavigationBar component named navigationBar (see Example of Creating the NavigationBar Component). Expand the first panel element and check if animation is performed:

// Expand the first panel element
navigationBar.getLayoutItems()[0].expand();
// Check if animation is performed in the side panel
if (navigationBar.isAnimation()) {
    console.log("Animation is performed in the side panel");
} else {
    console.log("Animation in the side panel is not performed");
}

As a result the console displays check result for animation performance:

Animation is performed in the side panel

See also:

NavigationBar