NavigatorBox.isContainer

Syntax

isContainer(object): Boolean;

Parameters

object. PP.Mb.Object. Repository object.

Description

The isContainer method returns whether repository object is a container.

Example

To execute the example, the page must contain NavigatorBox component named navbox (see Example of Creating the NavigatorBox Component).

// Check if selected object is container
object = navbox.getFocusedObject();
console.log(navbox.isContainer(object) ? "Selected object is container" : "Selected object is not container");

After executing the example the console displays whether the selected object is container.

See also:

NavigatorBox