Boa noite pessoal,
Estou estudando o Framework EXTJS e estou com uma dúvida referente a capturar os dados escritos nos textField
segue o js:
MyPanelUi = Ext.extend(Ext.Panel, {
title: 'My Panel',
width: 400,
height: 250,
layout: 'form',
initComponent: function() {
this.items = [
{
xtype: 'textfield',
name: 'nome',
fieldLabel: 'Nome'
} ,{
xtype: 'textfield',
name: 'endereco',
fieldLabel: 'Endereco'
}, {
xtype: 'button',
text: 'Gravar',
handler: this._onGravar
},{
xtype: 'button',
text: 'Limpar'
}
];
MyPanelUi.superclass.initComponent.call(this);
}
[b],_onGravar: function()
{alert('AQUI!!!');}[/b]
});
Veja acima o botão _onGravar:, estou exibindo um alert qualquer, seguindo meu código, como
faço para capturar os valores dos textFields?
Obrigado.

?