isContainer(object): Boolean;
object. PP.Mb.Object. Repository object.
The isContainer method returns whether repository object is a container.
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: