mediawiki-extensions-Visual.../modules/ve-mw/ui/widgets/ve.ui.MWTransclusionOutlineWikitextWidget.js

27 lines
1 KiB
JavaScript
Raw Normal View History

/**
* Top-level part in the template dialog sidebar, representing a raw wikitext
* snippet.
*
* @class
* @extends ve.ui.MWTransclusionOutlinePartWidget
*
* @constructor
* @param {ve.dm.MWTransclusionContentModel} content
*/
ve.ui.MWTransclusionOutlineWikitextWidget = function VeUiMWTransclusionOutlineWikitextWidget( content ) {
// Parent constructor
ve.ui.MWTransclusionOutlineWikitextWidget.super.call( this, content, {
icon: 'wikiText',
label: ve.msg( 'visualeditor-dialog-transclusion-wikitext' ),
ariaDescriptionUnselected: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria' ),
ariaDescriptionSelected: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected' ),
ariaDescriptionSelectedSingle: ve.msg( 'visualeditor-dialog-transclusion-wikitext-widget-aria-selected-single' )
} );
this.$element.addClass( 've-ui-mwTransclusionOutlineWikitextWidget' );
};
/* Inheritance */
OO.inheritClass( ve.ui.MWTransclusionOutlineWikitextWidget, ve.ui.MWTransclusionOutlinePartWidget );