As Eddie said, in the case of a xtype there is no difference in the results.
But alias property may be more xtype ...
The main difference is that alias can be used to define all types of aliases (widgets, plugins, functions, layouts, etc.), and xtype already a definite shorthand for the type of alias, a widget , so if you use xtype , you can only define widgets, nothing more. In addition, the alias property makes code more readable and therefore the first choice when writing class definitions.
Here are the common aliases of versions 4.2.3
- Union
- axis
- data
- straight
- Editing
- Function
- formaction
- idgen
- location
- plugin
- proxies
- reader
- the choice
- series
- state
- score
- widget
- Author
source share