PDA

View Full Version : [OPEN-EXTJSIV-450] Tabstop to form button



westy
29 Mar 2011, 5:09 AM
I have a FormPanel with three fields and a button.

I can tab between the fields, but cannot seem to tab to the button.

Simplified view:


Ext.define('Blah.views.LoginPanel', {
extend: 'Ext.form.FormPanel',

defaultType: 'textfield',
items: [
{
xtype: 'numberfield',
minValue: 0,
hideTrigger: true,
keyNavEnabled: false,
mouseWheelEnabled: false,
fieldLabel: 'Client Code',
name: 'clientId',
allowBlank: false,
allowDecimals: false
},
{
fieldLabel: 'Username',
name: 'username',
allowBlank: false
},
{
inputType: 'password',
fieldLabel: 'Password',
name: 'password',
allowBlank: false
}
],

buttons: [
{
text: 'Submit',
formBind: true,
disabled: true,
handler: function() {
var form = this.up('form').getForm();
if (form.isValid()) {
// Do stuff
}
}
}
]
});


Using FF4.

Cheers,
Westy