25 return $this->mParams[
'size'] ?? 9;
30 if ( !empty( $this->mParams[
'disabled'] ) ) {
31 $attribs[
'disabled'] =
'disabled';
34 $html = Xml::radioLabel(
35 $this->
msg(
'minimum-size' )->text(),
36 $this->mName .
'-mode',
38 $this->mID .
'-mode-min',
42 $html .=
"\u{00A0}" . Xml::radioLabel(
43 $this->
msg(
'maximum-size' )->text(),
44 $this->mName .
'-mode',
46 $this->mID .
'-mode-max',
50 $html .=
"\u{00A0}" . parent::getInputHTML( $value ? abs( $value ) :
'' );
51 $html .=
"\u{00A0}" . $this->
msg(
'pagesize' )->parse();
61 $this->mParent->getOutput()->addModuleStyles(
'mediawiki.widgets.SizeFilterWidget.styles' );
65 $params[
'value'] = $value ? abs( $value ) :
'';
68 'selectMin' => $this->mSelectMin,
70 'radioselectinput' => [
71 'name' => $this->mName .
'-mode',
72 'disabled' => !empty( $this->mParams[
'disabled'] ),
78 return [
'mediawiki.widgets.SizeFilterWidget' ];
87 $size = abs( $request->getInt( $this->mName, $this->getDefault() ) );
90 if ( $request->getVal( $this->mName .
'-mode' ) ===
'max' ) {
91 $this->mSelectMin =
false;
104class_alias( HTMLSizeFilterField::class,
'HTMLSizeFilterField' );
array $params
The job parameters.