mediawiki-extensions-Math/modules/ve-math/ve.ui.MWChemContextItem.js
Volker E 09b8a0830c Use renamed OOUI icon 'labFlask'
Change-Id: I1c6ffd18f97e6a0e95f9e8e88842743caf887fe8
2019-09-11 13:36:37 -07:00

45 lines
1.1 KiB
JavaScript

/*!
* VisualEditor MWChemContextItem class.
*
* @copyright 2015 VisualEditor Team and others; see http://ve.mit-license.org
*/
/**
* Context item for a chem node.
*
* @class
* @extends ve.ui.MWLatexContextItem
*
* @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.MWChemContextItem = function VeUiMWChemContextItem() {
// Parent constructor
ve.ui.MWChemContextItem.super.apply( this, arguments );
};
/* Inheritance */
OO.inheritClass( ve.ui.MWChemContextItem, ve.ui.MWLatexContextItem );
/* Static Properties */
ve.ui.MWChemContextItem.static.name = 'chem';
ve.ui.MWChemContextItem.static.icon = 'labFlask';
ve.ui.MWChemContextItem.static.label = OO.ui.deferMsg( 'math-visualeditor-mwchemdialog-title' );
ve.ui.MWChemContextItem.static.modelClasses = [ ve.dm.MWChemNode ];
ve.ui.MWChemContextItem.static.embeddable = false;
ve.ui.MWChemContextItem.static.commandName = 'chemDialog';
ve.ui.MWChemContextItem.static.inlineEditCommand = 'chemInspector';
/* Registration */
ve.ui.contextItemFactory.register( ve.ui.MWChemContextItem );