PDA

View Full Version : tabindex in form



Stephan123
23 Aug 2011, 6:00 AM
Hello !

I have a simple form.


...
xtype: 'textfield',
fieldLabel: 'Hotelname',
width: 200,
id: 'property_name',
helpText: 'Bitte Hotelname eingeben',
tabIndex: 1
},{
xtype: 'textfield',
fieldLabel: 'Hotelcode',
width: 200,
id: 'property_code',
helpText: 'Bitte Hotelcode eingeben',
tabIndex: 2
},{
xtype: 'textfield',
fieldLabel: 'ID',
width: 50,
id: 'id',
tabIndex: 3
}
...

I would like to navigate with the tab through the form below.
I just want to navigate through the fields with the option 'tabIndex'.

Is that possible?


Your sincerly

Stephan

Uberdude
23 Aug 2011, 7:04 AM
You generally don't need to bother setting tabIndex as the default is just to go through them in the obvious top to bottom through the DOM order. But yes there is a tabIndex property you can set if you want a different order, or have some more complex layout where the default isn't correct.

I don't quite understand your question, are you wishing there is a tabIndex property, but didn't check the docs to realize it does actually exist, or did you try using it as in your sample and it didn't work?

Stephan123
23 Aug 2011, 7:24 AM
Hello !

Thanks for the quick answer.
I need a special art of tabindex.
I have a form. In this form there are some textfields with an
tabindex - option.

When i press the tabindex - button i will run through the inputfields with a tabindex - option.
Only through the fields with a tabindex - option !


Sorry for my bad english :s

Your sincerly

Stephan