Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4110217
Element.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
Element.js
View Options
(
function
()
{
/**
* Provides access to HTMLForm OOUI classes.
*
* @namespace mw.htmlform
*/
mw
.
htmlform
=
{};
/**
* @classdesc Allows custom data specific to HTMLFormField to be set for OOUI forms. This picks up the
* extra config from a matching PHP widget (defined in HTMLFormElement.php) when constructed using
* OO.ui.infuse().
*
* Currently only supports passing 'cond-state' data.
*
* @class
* @constructor
* @description Create an instance of `mw.htmlform.Element`.
* @param {Object} [config] Configuration options
* @param {Object<string,string[]>} [config.condState] typically corresponds to a data-cond-state attribute
* that is found on HTMLForm elements and used during
* {@link event:'htmlform.enhance' htmlform.enhance}. For more information on the format see
* the private function conditionParse in resources/src/mediawiki.htmlform/cond-state.js.
*/
mw
.
htmlform
.
Element
=
function
(
config
)
{
// Configuration initialization
config
=
config
||
{};
// Properties
this
.
condState
=
config
.
condState
;
};
/**
* @class
* @extends OO.ui.FieldLayout
* @mixes mw.htmlform.Element
* @classdesc FieldLayout class.
* @memberof mw.htmlform
*
* @constructor
* @description Create a FieldLayout class.
* @param {Object} config
*/
mw
.
htmlform
.
FieldLayout
=
function
(
config
)
{
// Parent constructor
mw
.
htmlform
.
FieldLayout
.
super
.
call
(
this
,
config
);
// Mixin constructors
mw
.
htmlform
.
Element
.
call
(
this
,
config
);
};
OO
.
inheritClass
(
mw
.
htmlform
.
FieldLayout
,
OO
.
ui
.
FieldLayout
);
OO
.
mixinClass
(
mw
.
htmlform
.
FieldLayout
,
mw
.
htmlform
.
Element
);
/**
* @class
* @extends OO.ui.ActionFieldLayout
* @mixes mw.htmlform.Element
* @classdesc FieldLayout class.
* @memberof mw.htmlform
*
* @constructor
* @description Create an ActionFieldLayout class.
* @param {Object} config
*/
mw
.
htmlform
.
ActionFieldLayout
=
function
(
config
)
{
// Parent constructor
mw
.
htmlform
.
ActionFieldLayout
.
super
.
call
(
this
,
config
);
// Mixin constructors
mw
.
htmlform
.
Element
.
call
(
this
,
config
);
};
OO
.
inheritClass
(
mw
.
htmlform
.
ActionFieldLayout
,
OO
.
ui
.
ActionFieldLayout
);
OO
.
mixinClass
(
mw
.
htmlform
.
ActionFieldLayout
,
mw
.
htmlform
.
Element
);
}()
);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Aug 18, 21:38 (23 h, 28 m ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
5a/81/1655b78990dee6aa8fe6dd9d927d
Default Alt Text
Element.js (2 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment