NavigationItem.getIsRendered

Syntax

getIsRendered();

Description

The getIsRendered method returns whether the tab is rendered.

Comments

The method returns True if the tab is rendered, 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). Check if the second element is rendered:

// Check if the second tab is rendered
if (navigationBar.getLayoutItems()[1].getIsRendered()) {
    console.log("The second element is rendered");
} else {
    console.log("The second element is not rendered");
}

As a result the console displays check result for rendering the second element:

The second element is rendered

See also:

NavigationItem