mw.widgets.SizeFilterWidget(configopt)

mw.widgets.SizeFilterWidget

Example

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

Constructor

new mw.widgets.SizeFilterWidget(configopt) #

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:
RadioSelectInputWidget and a TextInputWidget to set minimum or maximum byte size.

Extends

Methods