I am new to Ext JS, so pardon my ignorance, but I seem to be having basic problem here. I am trying to execute the simple example of Account Manager provided at Ext JS 4.0 site for MVC architecture. Unlike the example, my form fields names must not change.
In this example: if I change xtype to label, it still displays a textfield that I can modify. Also If i change the fieldLabel and name of items to "property", it does not show on the browser.Am I missing something here -- modifying the view does not modify the output I see in browser?Please suggest what xtype I must use. I do not see a working form example on Ext JS site that is in 4.0 version, Please provide me one.
Ext.define('AM.view.user.Edit', {
extend: 'Ext.window.Window',
alias : 'widget.useredit',
title : 'Edit User',
layout: 'fit',
autoShow: true,
initComponent: function() {
this.items = [
{
xtype: 'form',
items: [
{
xtype: 'textfield',
name : '**name**',
fieldLabel: 'Name'
},
{
xtype: 'textfield',
name : 'email',
fieldLabel: 'Email'
}
]
}
];
this.buttons = [
{
text: 'Save',
action: 'save'
},
{
text: 'Cancel',
scope: this,
handler: this.close
}
];
this.callParent(arguments);
}
});