Search code examples
extjsextjs3typeof

ExtJS typeof element


I want to iterate lots of elements in a loop, for example I want to pick up all grids from that loop. How can I detect if elements is a grid or not.


Solution

  • In such a case, getXType() and isXType() methods of Ext.Component are useful.