5 use OOUI\DropdownInputWidget;
6 use OOUI\TextInputWidget;
37 'dropdowninput' => [],
45 $config[
'textinput'][
'disabled'] =
true;
46 $config[
'dropdowninput'][
'disabled'] =
true;
56 $this->textinput =
new TextInputWidget(
$config[
'textinput'] );
57 $this->dropdowninput =
new DropdownInputWidget(
$config[
'dropdowninput'] );
61 ->addClasses( [
'mw-widget-selectWithInputWidget' ] )
62 ->appendContent( $this->dropdowninput, $this->textinput );
66 return 'mw.widgets.SelectWithInputWidget';
70 $config[
'textinput'] = $this->config[
'textinput'];
71 $config[
'dropdowninput'] = $this->config[
'dropdowninput'];
72 $config[
'dropdowninput'][
'dropdown'][
'$overlay'] =
true;
73 $config[
'or'] = $this->config[
'or'];
74 $config[
'required'] = $this->config[
'required'];
75 return parent::getConfig(
$config );