Results 1 to 3 of 3

Thread: tabindex in form

  1. #1
    Sencha User
    Join Date
    Feb 2009
    Posts
    264

    Default tabindex in form

    Hello !

    I have a simple form.

    Code:
    ...
      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

  2. #2
    Sencha User
    Join Date
    Oct 2009
    Location
    Cambridge, UK
    Posts
    164

    Default

    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?

  3. #3
    Sencha User
    Join Date
    Feb 2009
    Posts
    264

    Default tabindex in a form

    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

    Your sincerly

    Stephan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •