PDA

View Full Version : Creating new UI controls



jcar98
5 Mar 2011, 7:57 PM
I was reading the tutorial on creating new UI controls. http://www.sencha.com/learn/Tutorial:Creating_new_UI_controls

It mentions the method: Ext.reg(), however I cannot find this in the Ext JS 4.0 documentation. Is this method deprecated in 4.0? If yes, what would be the new way of defining an xtype?

Thanks
JC

Animal
5 Mar 2011, 10:17 PM
This area does need some new documentation writing.

It's the alias property in the object definition that sets the xtype.



alias: 'widget.myNewXtype'

mitchellsimoens
6 Mar 2011, 5:01 AM
Going a little further...


Ext.define("MyClass", {
extend : "Ext.Panel",
alias : "widget.myclass",

....
});

jcar98
6 Mar 2011, 12:29 PM
Thank you both for your prompt and helpful response.
God Bless
JC