When does initialConfig get called? What's the difference between it and initComponent?
An Ext JS application's UI is made up of one or many widgets called Components. All Components are subclasses of the Ext. Component class which allows them to participate in automated lifecycle management including instantiation, rendering, sizing and positioning, and destruction.
getCmp. will return you an item matching the id you passed it. This will be the fastest method to return an item. All items when created with an id are registered in a single object using their id as a key.
Column renderers give us the ability to customize the behavior and rendering of the cells inside a grid's panel. A renderer is tied to a particular column, and will run for each cell that it has to display/create in that column. In the Ext JS library, many renderers are already set inside the Ext.
initialConfig
never gets called, because it is not a function.
It's the configuration object, that was used to configure the component when it was actually created.
For example when you do:
var textField = new Ext.form.TextField({
fieldLabel: 'A textfield',
itemId: 'textField'
});
the
{
fieldLabel: 'A textfield',
itemId: 'textField'
}
object becomes a read only property textField.initialConfig
initComponent()
is a private function, that is responsible for configuring the component during creation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With