Page MenuHomePhabricator

Add support for creating tabs in OOUI PHP
Closed, DuplicatePublic

Description

I was looking at a way to do tabs in ooui php but i could only find you can do this in js but not php.

Could support for php be added please?

Event Timeline

Paladox created this task.Sep 2 2018, 11:13 AM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptSep 2 2018, 11:13 AM

T164549: OOUIHTMLForm should magically use a IndexLayout (OOUI tabs) and do the right thing on #displaySection() calls was declined;

There aren't many forms large enough to benefit from tabbed navigation, and frankly it is somewhat difficult to implement a generic way to do this with how annoyingly flexible HTMLForm is. When doing it only for a single form like Special:Preferences, we can make it easier by not handling certain corner cases that we know can never occur.
I'm willing to reconsider this if someone provides two more examples of forms where they'd like to use this. But until that happens, I think it would be unwise to spend time on a generic solution handling those corner cases.

Aklapper changed the task status from Open to Stalled.Sep 2 2018, 11:48 AM

@Paladox: Feature requests like this need use cases.

We would like to use it to split up our forms since we are currently in the process of migrating settings to the form (which is quite a lot) and we don't want to show all the settings on the first tab. We want to spread this out.

Volker_E renamed this task from Add support for creating tabs in ooui php to Add support for creating tabs in OOUI PHP.Mar 11 2019, 5:18 PM
Volker_E changed the task status from Stalled to Open.
Volker_E triaged this task as Medium priority.
Volker_E added a subscriber: Volker_E.