Feature request: Allow to preselect a default tab

Jump to: navigation, search

As discussed earlier in the mail forum[1], we would see it as vital to have an option to preselect a certain tab (define a default tab), that could be prescribed by something like:

<headertabs defaultTab="Tab 2" />
MWJames19:31, 11 March 2011

The easiest way is to have it as first tab - not sure why you would want something else - first tab is as good as the rest of them.

Sergey Chernyshev18:20, 17 March 2011

Because their are scenarios where this is just not possible,as in the case of the standard input text area (it has to come last due to the limitation of the template/form concept).

For example, forms that contain administrative information are filled and hold in templates (or other multiple templates) and those form parts responsible for those template input has to come before the textarea tab represented by {{{standard input|free text|rows=18|cols=95}}}. (and you want to keep it in the tab otherwise you could solve the display of information with collapsible tables or other CSS tricks)

From a user perspective, most of time users want to fill in text which is represented through a textarea (you can't use another area to handle standard text because <standard input> does not create any conflicts with standard characters used in templates such & | etc. and you have text that you want to keep out of being stored in any template because their have no semantic relevancy).

This is way, <headertabs defaultTab="Tab 2" /> would come in handy because instead of going through the tabs before entering the textarea tab, the form can determine which tab to open by default and if necessary the user can decide whether he/she has to add administrative data on the other tabs (that are contained in the template).

MWJames05:06, 18 March 2011

Some examples on how this can be implemented in jQuery can be found here [1]

MWJames19:01, 19 June 2011
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox