Page MenuHomeWickedGov Phorge

ext.uls.actions.menu.item.js
No OneTemporary

Size
714 B
Referenced Files
None
Subscribers
None

ext.uls.actions.menu.item.js

( function () {
var ActionsMenuItem = function ( icon, text, handler, href ) {
this.icon = icon;
this.text = text;
this.handler = handler;
this.href = href;
};
/**
* @return {OO.ui.ButtonWidget}
*/
ActionsMenuItem.prototype.render = function () {
var actionButtonOptions = {
framed: false,
icon: this.icon,
label: this.text,
classes: [ 'uls-language-action' ],
flags: [ 'progressive' ]
};
if ( this.href ) {
actionButtonOptions.href = this.href;
}
var actionButton = new OO.ui.ButtonWidget( actionButtonOptions );
if ( !this.href ) {
actionButton.$element.one( 'click', this.handler );
}
return actionButton;
};
module.exports = ActionsMenuItem;
}() );

File Metadata

Mime Type
text/plain
Expires
Fri, Jul 3, 18:54 (1 d, 17 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8d/22/1f28b143cfd8b459e92ec5907210
Default Alt Text
ext.uls.actions.menu.item.js (714 B)

Event Timeline