5 use \OOUI\RadioSelectInputWidget;
6 use \OOUI\TextInputWidget;
33 'radioselectinput' => []
35 $config[
'textinput'] = array_merge( [
38 $config[
'radioselectinput'] = array_merge( [
'options' => [
47 ] ],
$config[
'radioselectinput'] );
54 $this->radioselectinput =
new RadioSelectInputWidget(
$config[
'radioselectinput'] );
55 $this->textinput =
new TextInputWidget(
$config[
'textinput' ] );
56 $this->label =
new LabelWidget( [
'label' =>
wfMessage(
'pagesize' )->
text() ] );
59 $this->radioselectinput->setValue(
$config[
'selectMin' ] ?
'min' :
'max' );
61 ->addClasses( [
'mw-widget-sizeFilterWidget' ] )
62 ->appendContent( $this->radioselectinput, $this->textinput, $this->label );
66 return 'mw.widgets.SizeFilterWidget';
70 $config[
'textinput'] = $this->config[
'textinput'];
71 $config[
'radioselectinput'] = $this->config[
'radioselectinput'];
72 $config[
'selectMin'] = $this->config[
'selectMin'];
73 return parent::getConfig(
$config );