Search code examples
extjsstaticextjs4

List of static methods from an instance in ExtJS


I have an instance of a class (e.g Ext.data.Model) myRecord and need to call one of its static methods (e.g getFields()). How can I do that?


Solution

  • You can also use the self property to get the class:

    myRecord.self.getFields();