MetabaseObjectsView.CustomClasses

Syntax

CustomClasses : Array;

Description

The CustomClasses property contains an array of object custom classes.

Comments

Use JSON or the setCustomClasses method to set the property value, and the getCustomClasses method to get the property value.

Example

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

// Get object view
view = navbox.getObjectsView();
// Get current custom classes
console.log(view.getCustomClasses());
// Get selected object
obj = view.getFocusedObject();
// Check if selected object is a custom class instance
console.log(view.getCustomClassObject(obj));

After executing the example the console displays custom classes, and the selected object custom class is obtained.

See also:

MetabaseObjectsView