Tanks Mitchell for your time and quick responses!!!
Ok, I'm not clear now about the difference between use widgets or just xtypes.
When I define a component, I can use
Code:
alias: 'widget.mypanel'
or just .
Then I can use: in both cases. Correct?
Then, I've seen a code sample at API where it says that widgets allows to use the following:
Code:
Ext.define('MyApp.CoolPanel',{
extend:'Ext.panel.Panel',
alias:['widget.coolpanel'],
title:'Yeah!'});
// Using Ext.create
Ext.widget('widget.coolpanel');
// Using the shorthand for widgets and in xtypes
Ext.widget('panel',{
items:[
{xtype:'coolpanel', html:'Foo'},
{xtype:'coolpanel', html:'Bar'}
]
});
So, what's the real difference between those options, and when it should be used? Is there any difference in performance? Can I just use xtype always to define my custom components, rather to use alias and widgets? Which is the advantage of alias and widgets?
Thanks again for your help!

Originally Posted by
mitchellsimoens
alias just defines an xtype for components. It's the type of alias and the name <type>.<name>
So 'widget.cmpname' is saying that the type of alias is a widget and the name is cmpname. For the widget, the name is also the xtype.