NavigationBar.getContentAutoFit

Syntax

getContentAutoFit();

Description

The getContentAutoFit method returns whether contents autofit is used in the side panel.

Comments

The method returns True if the side panel contents is autofit, 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 panel contents autofit is used:

// Check if side panel contents autofit is used
if (navigationBar.getContentAutoFit()) {
    console.log("Side panel contents autofit is used");
} else {
    console.log("Side panel contents autofit is not used");
}

As a result the console displays check result for autofit use:

Side panel contents autofit is not used

See also:

NavigationBar