getTypeName();
The getTypeName method returns the name of the object type without the namespace to which it belongs.
The necessary event for correct work lies in the following: if the class is not determined in the PP namespace then it is necessary to determine the Name static field of the class after the class determination:
MyNamespace.Test = function(){},
MyNamespace.Name = 'Test'
Even if the class is determined in the PP then it is desired to write the type name through the Name static field for higher working speed of this function.
To execute the example the HTML page must contain the BubbleTree named bubbleTree (see Example of Creating the BubbleTree Component). Determine name of the object, to which it belongs:
console.log(bubbleTree.getTypeName());
After executing the example the browser console displays type of the bubbleTree object, to which it belongs.
See also: