24 'list' => $this->mName .
'-datalist',
25 ] + parent::getAttributes( $list );
31 $datalist =
new XmlSelect(
false, $this->mName .
'-datalist' );
32 $datalist->setTagName(
'datalist' );
35 return parent::getInputHTML( $value ) . $datalist->getHTML();
40 $allowedParams = [
'tabindex' ];
41 $attribs = OOUI\Element::configFromHtmlAttributes(
45 if ( $this->mClass !==
'' ) {
49 if ( !empty( $this->mParams[
'disabled'] ) ) {
53 return new OOUI\ComboBoxInputWidget( [
54 'name' => $this->mName,
57 'value' => strval( $value ),
58 'disabled' => $disabled,
shouldInfuseOOUI()
Whether the field should be automatically infused.
getInputOOUI( $value)
Same as getInputHTML, but returns an OOUI object.Defaults to false, which getOOUI will interpret as "...
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.