Component vs Element

Component Element
Base class for widgets and other components Wrapper for DOM Elements
Retrieval:
  • Ext.getCmp('id')
Retrieval:
  • Ext.get('id')
  • Ext.fly('id')
Component Interface
  • cmp.disable(); //yes
  • cmp.highlight(); //no
  • cmp.getEl().highlight(); //yes
Element Interface
  • el.disable(); //no
  • el.highlight(); //yes