2 * MediaWiki Widgets - NamespacesMenuOptionWidget class.
4 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
5 * @license The MIT License (MIT); see LICENSE.txt
10 * Creates an mw.widgets.NamespacesMenuOptionWidget object
12 * This MenuOptionWidget widget returns an item match text that includes
13 * both the label and the data, so the menu can filter on either.
16 * @extends OO.ui.MenuOptionWidget
19 * @param {Object} [config] Configuration options
21 mw
.widgets
.NamespacesMenuOptionWidget
= function MwWidgetsNamespacesMenuOptionWidget( config
) {
23 mw
.widgets
.NamespacesMenuOptionWidget
.parent
.call( this, config
);
28 OO
.inheritClass( mw
.widgets
.NamespacesMenuOptionWidget
, OO
.ui
.MenuOptionWidget
);
33 mw
.widgets
.NamespacesMenuOptionWidget
.prototype.getMatchText = function () {
34 return this.getData() + ' ' + this.getLabel();