Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4141951
ParamImportWidget.js
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
ParamImportWidget.js
View Options
/**
* TemplateData Param Import Widget
*
* @class
* @extends OO.ui.ButtonWidget
* @param {Object} [config]
*/
function
ParamImportWidget
(
config
)
{
config
=
config
||
{};
// Parent constructor
ParamImportWidget
.
super
.
call
(
this
,
Object
.
assign
(
{
icon
:
'parameter-set'
},
config
)
);
// Initialize
this
.
$element
.
addClass
(
'tdg-templateDataParamImportWidget'
);
}
/* Inheritance */
OO
.
inheritClass
(
ParamImportWidget
,
OO
.
ui
.
ButtonWidget
);
/**
* Build the parameter label in the parameter select widget
*
* @param {string[]} params Param names
*/
ParamImportWidget
.
prototype
.
buildParamLabel
=
function
(
params
)
{
const
paramNames
=
params
.
slice
(
0
,
9
).
join
(
mw
.
msg
(
'comma-separator'
)
);
this
.
setLabel
(
$
(
'<div>'
)
.
addClass
(
'tdg-templateDataParamWidget-param-name'
)
.
text
(
mw
.
msg
(
'templatedata-modal-table-param-importoption'
,
params
.
length
)
)
.
append
(
$
(
'<div>'
)
.
addClass
(
'tdg-templateDataParamWidget-param-description'
)
.
text
(
mw
.
msg
(
'templatedata-modal-table-param-importoption-subtitle'
,
paramNames
)
)
)
);
};
module
.
exports
=
ParamImportWidget
;
File Metadata
Details
Attached
Mime Type
text/x-asm
Expires
Aug 19 2026, 16:10 (4 w, 2 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b0/1d/4b994cc5ebd049fa536f7e86d949
Default Alt Text
ParamImportWidget.js (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment