Implement HTMLComboboxField
authorBartosz Dziewoński <matma.rex@gmail.com>
Sun, 8 Nov 2015 15:21:58 +0000 (16:21 +0100)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 12 Nov 2015 08:48:27 +0000 (09:48 +0100)
commit77d759aab4acf6004ef3123d8ffc984782771720
tree65c77d489e71fa9325c584f9e6dff72227014240
parente1ebc2de02efbaf9183a48359b0025b04de9c5e4
Implement HTMLComboboxField

It's a dropdown select with the ability to add custom options, or a
text field with input suggestions, whichever you prefer.

This is meant to be a replacement for HTMLSelectOrOtherField and
HTMLAutoCompleteSelectField.

In regular HTML mode, it uses HTML5 `<datalist>` element with no
custom JavaScript. This is supported by a wide range of browsers
(IE 10+, modern Firefox and Chrome, Opera 12+).

In OOUI mode, it uses a ComboBoxInputWidget.

Depends on: I14b40884f185fb4e5

Bug: T118119
Change-Id: I954d3d24ed4efe90be9596a1bd9586ba3aee1e23
autoload.php
includes/XmlSelect.php
includes/htmlform/HTMLAutoCompleteSelectField.php
includes/htmlform/HTMLComboboxField.php [new file with mode: 0644]
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLSelectOrOtherField.php