Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5951545
MenuTagMultiselectWidget.php
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
MenuTagMultiselectWidget.php
View Options
<?php
namespace
MediaWiki\Widget
;
/**
* Widget to select multiple options.
*
* @copyright 2024 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license MIT
*/
class
MenuTagMultiselectWidget
extends
TagMultiselectWidget
{
private
array
$mOptions
;
private
array
$mFallback
;
/**
* @param array $config Configuration options
* - array $config['options'] Grouped options for the dropdown menu
* - \OOUI\Widget[] $config['noJsFallback'] Fallback implementation for no-js clients
*/
public
function
__construct
(
$config
)
{
$this
->
mOptions
=
$config
[
'options'
];
$this
->
mFallback
=
$config
[
'noJsFallback'
];
parent
::
__construct
(
$config
);
}
/** @inheritDoc */
public
function
getConfig
(
&
$config
)
{
$config
[
'options'
]
=
$this
->
mOptions
;
return
parent
::
getConfig
(
$config
);
}
/** @inheritDoc */
protected
function
getNoJavaScriptFallback
()
{
return
$this
->
mFallback
;
}
/** @inheritDoc */
protected
function
getJavaScriptClassName
()
{
return
'mw.widgets.MenuTagMultiselectWidget'
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Oct 3 2026, 00:52 (4 w, 6 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
b6/ca/7d72e30ead6545e2d1c970501226
Default Alt Text
MenuTagMultiselectWidget.php (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment