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 * @classdesc Returns an item match text that includes both the label
11 * and the data, so the menu can filter on either.
14 * @extends OO.ui.MenuOptionWidget
17 * @description Create an mw.widgets.NamespacesMenuOptionWidget object.
18 * @param {Object} [config] Configuration options
20 mw.widgets.NamespacesMenuOptionWidget = function MwWidgetsNamespacesMenuOptionWidget( config ) {
22 mw.widgets.NamespacesMenuOptionWidget.super.call( this, config );
27 OO.inheritClass( mw.widgets.NamespacesMenuOptionWidget, OO.ui.MenuOptionWidget );
32 mw.widgets.NamespacesMenuOptionWidget.prototype.getMatchText = function () {
33 return this.getData() + ' ' + this.getLabel();