Page MenuHomeWickedGov Phorge

ve.ui.MWGalleryContextItem.js
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None

ve.ui.MWGalleryContextItem.js

/*!
* VisualEditor MWGalleryContextItem class.
*
* @copyright See AUTHORS.txt
*/
/**
* Context item for a MWGallery.
*
* @class
* @extends ve.ui.LinearContextItem
*
* @param {ve.ui.LinearContext} context Context the item is in
* @param {ve.dm.Model} model Model the item is related to
* @param {Object} [config]
*/
ve.ui.MWGalleryContextItem = function VeUiMWGalleryContextItem() {
// Parent constructor
ve.ui.MWGalleryContextItem.super.apply( this, arguments );
// Initialization
this.$element.addClass( 've-ui-mwGalleryContextItem' );
};
/* Inheritance */
OO.inheritClass( ve.ui.MWGalleryContextItem, ve.ui.LinearContextItem );
/* Static Properties */
ve.ui.MWGalleryContextItem.static.name = 'mwGallery';
ve.ui.MWGalleryContextItem.static.icon = 'imageGallery';
ve.ui.MWGalleryContextItem.static.label = OO.ui.deferMsg( 'visualeditor-mwgallerydialog-title' );
ve.ui.MWGalleryContextItem.static.modelClasses = [ ve.dm.MWGalleryNode ];
ve.ui.MWGalleryContextItem.static.commandName = 'gallery';
/* Methods */
/**
* @inheritdoc
*/
ve.ui.MWGalleryContextItem.prototype.getDescription = function () {
return ve.msg( 'visualeditor-mwgallerycontext-description', this.model.getImageNodes().length );
};
/* Registration */
ve.ui.contextItemFactory.register( ve.ui.MWGalleryContextItem );

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 21, 21:44 (1 d, 16 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
0d/5e/83d4aa87e255a549e1da464220b1
Default Alt Text
ve.ui.MWGalleryContextItem.js (1 KB)

Event Timeline