Common naming convention for xtypes?
Just curious of any naming conventions being used for id's versus xtype. I had an inclination to use the same name.
Code:
items: [{
xtype: 'panel-login',
itemId: 'loginPanel',
id: 'loginPanel',
region: 'north',
height: 50
},
Doesn't make a hill of bean difference, just thought I would see if there's a common convention floating around which if nothing else might make user extensions (xtype registrations) more uniform.
I haven't tracked down what the problem is yet, but if you use the same id and xtype name it causes problems. For example, using something like:
Code:
items: [{
xtype: 'loginPanel',
itemId: 'loginPanel',
id: 'loginPanel',//note I match the xtype
region: 'north',
height: 50
},
and then doing
Code:
Ext.getCmp('loginPanel')
results in:
Ext.getCmp('loginPanel') has no properties