View Full Version : Ext.new or xtype?

2 Feb 2012, 12:09 AM
Hello people,

I was wondering what it is the best way to implement for example a button on Sencha Touch. I been using Ext.new Button... because I found it easy to implement and very clean to call my button on the items. But is also possible to implement it inside the items[] using xtype: button...

I would like to hear your views about what is the best way to implement that and why one way is better than the other.

Look forward to read your comments.

Sameer Khan
2 Feb 2012, 2:38 AM
use xtype:button , don't create new Ext.button...Bcz every time object creation will be done.. If we use xtype:button reference will be created....I think u can understand what i am saying..