El 04/16/2018 a les 05:14 PM, Gergo Tisza ha escrit:
On Mon, Apr 16, 2018 at 12:40 AM, Brian Wolff wrote:
So basically no, its not possible currently without implementing your own
HTMLFormField subclass.
The task for that is https://phabricator.wikimedia.org/T170263
On Mon, Apr 16, 2018 at 12:40 AM, Brian Wolff wrote:
> So basically no, its not possible currently without implementing your own
> HTMLFormField subclass.
The task for that is https://phabricator.wikimedia.org/T170263
Should be pretty easy, the OOUI widget exists already.
Ok, I looked into this a little closer.
type => file is missing from HTMLForm::typeMapping. But class overrides
this, and the HTMLTextField has some code where the type parameter is just
stuck into the html type attribute so it can be used in multiple places.
But in the OOUI case
Hi Brian,
if I only specify one I get this exception:
...
Descriptor with no class for fileupload: Array
(
[section] => upload
[label] => Upload file
[type] => file
[class] =>
)
...
Not using ooui, both are needed and it works...
On 15/04/2018 19:40, Brian Wolff wrote:
Im not sure, but
Im not sure, but having the class specified as HTMLTextField looks wrong
(type & class are mutually exclusive. You should only specify one).
--
Brian
On Sunday, April 15, 2018, Toni Hermoso Pulido wrote:
> Hello,
>
> I'm trying to migrate a HTMLForm to use ooui
>
> by following