Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F6008964
ext.uls.actions.menu.item.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
720 B
Referenced Files
None
Subscribers
None
ext.uls.actions.menu.item.js
View Options
(
function
()
{
const
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
()
{
const
actionButtonOptions
=
{
framed
:
false
,
icon
:
this
.
icon
,
label
:
this
.
text
,
classes
:
[
'uls-language-action'
],
flags
:
[
'progressive'
]
};
if
(
this
.
href
)
{
actionButtonOptions
.
href
=
this
.
href
;
}
const
actionButton
=
new
OO
.
ui
.
ButtonWidget
(
actionButtonOptions
);
if
(
!
this
.
href
)
{
actionButton
.
$element
.
one
(
'click'
,
this
.
handler
);
}
return
actionButton
;
};
module
.
exports
=
ActionsMenuItem
;
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Oct 4 2026, 09:17 (6 w, 1 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
c7/e5/63b44e8e090944ac68f404c881e7
Default Alt Text
ext.uls.actions.menu.item.js (720 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment