mirror of
https://github.com/StarCitizenTools/mediawiki-extensions-TabberNeue.git
synced 2024-12-11 16:16:31 +00:00
44 lines
1.2 KiB
JavaScript
44 lines
1.2 KiB
JavaScript
|
/**
|
||
|
* VisualEditor MWTabberTranscludeContextItem class.
|
||
|
*
|
||
|
* @class
|
||
|
* @extends ve.ui.LinearContextItem
|
||
|
*
|
||
|
* @constructor
|
||
|
* @param {ve.ui.Context} context Context item is in
|
||
|
* @param {ve.dm.Model} model Model item is related to
|
||
|
* @param {Object} config Configuration options
|
||
|
*/
|
||
|
ve.ui.MWTabberTranscludeContextItem = function VeUiMWTabberTranscludeContextItem() {
|
||
|
// Parent constructor
|
||
|
ve.ui.MWTabberTranscludeContextItem.super.apply( this, arguments );
|
||
|
};
|
||
|
|
||
|
/* Inheritance */
|
||
|
|
||
|
OO.inheritClass( ve.ui.MWTabberTranscludeContextItem, ve.ui.LinearContextItem );
|
||
|
|
||
|
/* Static Properties */
|
||
|
|
||
|
ve.ui.MWTabberTranscludeContextItem.static.name = 'mwTabberTransclude';
|
||
|
|
||
|
ve.ui.MWTabberTranscludeContextItem.static.icon = 'tabber';
|
||
|
|
||
|
ve.ui.MWTabberTranscludeContextItem.static.label = OO.ui.deferMsg( 'tabberneue-visualeditor-mwtabberdialog-title' );
|
||
|
|
||
|
ve.ui.MWTabberTranscludeContextItem.static.modelClasses = [ ve.dm.MWTabberTranscludeNode ];
|
||
|
|
||
|
ve.ui.MWTabberTranscludeContextItem.static.commandName = 'mwTabberTransclude';
|
||
|
|
||
|
/* Methods */
|
||
|
|
||
|
/**
|
||
|
* @inheritdoc
|
||
|
*/
|
||
|
ve.ui.MWTabberTranscludeContextItem.prototype.getDescription = function () {
|
||
|
return '';
|
||
|
};
|
||
|
|
||
|
/* Registration */
|
||
|
|
||
|
ve.ui.contextItemFactory.register( ve.ui.MWTabberTranscludeContextItem );
|