ExtJS - Component


Note: if we want to customize or extend ExtJS, see Extending

How can we determine if a component is diabled?

Ext.getCmp(cmpID).disabled == true

How can we determine if a component is hidden?

Ext.getCmp(cmpID).hidden == true

How can we obtain a component given its ID?

var comp = Ext.getCmp('compId'); //retrieve a Ext.Component

How can we render a component inside an existing HTML element given that we know the ID of the HTML element?


pageFormContainer is the ID of the existing HTML element.

How can we determine the xtype of a component?


How can we test to see if a given component is derived from a given xtype?


How can we iterate over all components on a page?

I will come back to this later.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License