22 'list' => $this->mName .
'-datalist',
23 ] + parent::getAttributes( $list );
29 $datalist =
new XmlSelect(
false, $this->mName .
'-datalist' );
30 $datalist->setTagName(
'datalist' );
33 return parent::getInputHTML(
$value ) . $datalist->getHTML();
38 $allowedParams = [
'tabindex' ];
39 $attribs = OOUI\Element::configFromHtmlAttributes(
43 if ( $this->mClass !==
'' ) {
47 if ( !empty( $this->mParams[
'disabled'] ) ) {
51 return new OOUI\ComboBoxInputWidget( [
52 'name' => $this->mName,
55 'value' => strval(
$value ),
56 'disabled' => $disabled,
shouldInfuseOOUI()
Whether the field should be automatically infused.
getInputOOUI( $value)
Same as getInputHTML, but returns an OOUI object.
getAttributes(array $list)
Returns the given attributes from the parameters.
getInputHTML( $value)
This function must be implemented to return the HTML to generate the input object itself.
Class for generating HTML <select> or <datalist> elements.
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped noclasses just before the function returns a value If you return an< a > element with HTML attributes $attribs and contents $html will be returned If you return $ret will be returned and may include noclasses after processing & $attribs