mediawiki-extensions-Echo/modules/ooui/mw.echo.ui.PlaceholderItemWidget.js
Moriel Schottlender 4bbaf77c2a Change the naming of 'notification option' to 'notification item' widgets
This is in preparation of adding more item models and widget types,
and in preparation of switching the notification widget away from being
a select widget.

Change-Id: I518fb3d80f4f67d677c21ca5593638269acfa544
2015-11-19 16:52:04 -08:00

25 lines
782 B
JavaScript

( function ( mw, $ ) {
/**
* Placeholder notification option widget for echo popup.
*
* @class
* @extends OO.ui.OptionWidget
*
* @constructor
* @param {Object} [config] Configuration object
*/
mw.echo.ui.PlaceholderItemWidget = function MwEchoUiPlaceholderItemWidget( config ) {
// Parent constructor
mw.echo.ui.PlaceholderItemWidget.parent.call( this, $.extend( { data: null }, config ) );
this.$element.addClass( 'mw-echo-ui-notificationsWidget-loadingOption' );
};
OO.inheritClass( mw.echo.ui.PlaceholderItemWidget, OO.ui.OptionWidget );
mw.echo.ui.PlaceholderItemWidget.static.selectable = false;
mw.echo.ui.PlaceholderItemWidget.static.highlightable = false;
mw.echo.ui.PlaceholderItemWidget.static.pressable = false;
} )( mediaWiki, jQuery );