POC: Reimplementing MobileOptions in OOUI

Authored by Konfused-Kitten on Tue, Nov 14, 12:12 AM.

Description

POC: Reimplementing MobileOptions in OOUI

To tease out the complexity I had a look at what this involves
to get to the point where Special:MobileOptions is completely
written in OOUI and we can use the DropdownWidget

Problems to address:

  • Adding widgets to the form

I might be missing something but there's no obvious way to add inputs
to a form rendered in PHP via JS.

  • Wiring up click handlers

i might be missing something but it doesn't seem like there is an
easy way to bind an event to the checkbox item. My interpretation of
the minimal docs that exist is that I have to create a class that extends
the InputWidget ... but surely that's not right.

  • Creating option descriptions

Creating the div.option-description is messy. I'm not sure if there's an
easier way.

Change-Id: I70f68df9d2d305126444319b05675702af75de87

Details

Committed
Konfused-KittenTue, Nov 14, 12:31 AM
Parents
rEMFR9a6cd24c7d5b: Use Html messageBox helpers
Branches
Unknown
Tags
Unknown
References
refs/changes/43/391143/2
ChangeId
I70f68df9d2d305126444319b05675702af75de87