Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1426585
BooleanToggleSwitchParamWidget.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
896 B
Referenced Files
None
Subscribers
None
BooleanToggleSwitchParamWidget.js
View Options
const
UtilMixin
=
require
(
'./UtilMixin.js'
);
/**
* A wrapper for OO.ui.ToggleSwitchWidget
*
* @class
* @private
* @constructor
*/
function
BooleanToggleSwitchParamWidget
()
{
BooleanToggleSwitchParamWidget
.
super
.
call
(
this
);
}
OO
.
inheritClass
(
BooleanToggleSwitchParamWidget
,
OO
.
ui
.
ToggleSwitchWidget
);
OO
.
mixinClass
(
BooleanToggleSwitchParamWidget
,
UtilMixin
);
/**
* @return {number|undefined}
*/
BooleanToggleSwitchParamWidget
.
prototype
.
getApiValue
=
function
()
{
return
this
.
getValue
()
?
1
:
undefined
;
};
/**
* @param {any} newValue
*/
BooleanToggleSwitchParamWidget
.
prototype
.
setApiValue
=
function
(
newValue
)
{
this
.
setValue
(
this
.
apiBool
(
newValue
)
);
};
/**
* @return {jQuery.Promise}
*/
BooleanToggleSwitchParamWidget
.
prototype
.
apiCheckValid
=
function
()
{
return
$
.
Deferred
().
resolve
(
true
).
promise
();
};
module
.
exports
=
BooleanToggleSwitchParamWidget
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 13:26 (1 d, 14 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
48/b1/08afdf3f91177783a28e87404a7c
Default Alt Text
BooleanToggleSwitchParamWidget.js (896 B)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment