mw.widgets.SizeFilterWidget

Size filter widget.

Example

mw.loader.using( 'mediawiki.widgets.SizeFilterWidget', function () {
  var sf = new mw.widgets.SizeFilterWidget();
  $( document.body ).append( sf.$element );
} );

Extends

Constructor

new mw.widgets.SizeFilterWidget(config) #

Use a RadioSelectInputWidget and a TextInputWidget to set minimum or maximum byte size.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Attributes Default Description
radioselectinput Object optional

Config for the radio select input

textinput Object optional

Config for the text input

selectMin boolean optional
true

Whether to select 'min', false would select 'max'

Source:

Methods