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