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.