I tried to test the script, I write in the firebug console, and I think the script is quite simple. And when I ran the script, I got this me.dockedItems undefined error. Here is the code that I run from the Firefox firebug console:
Ext.create('Ext.window.Window',{ title : 'Login', width : 400, height : 500, initComponent : function() { var me = this; var usernameField = Ext.create('Ext.form.field.Text',{ fieldLabel : 'Net ID', allowBlank : false, labelWidth : 150, width : 150, emptyText : 'Net ID' }); var passField = Ext.create('Ext.form.field.Text',{ fieldLabel : 'Password', allowBlank : false, labelWidth : 150, width : 150, emptyText : 'Pass' }); this.items = [usernameField,passField]; this.callParent(arguments); } }).show();
I appreciate your help to find out what is wrong with the code.
source share