MediaWiki master
OrderedMultiselectWidget.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Widget;
4
11
12 private array $mOptions;
13
18 public function __construct( $config ) {
19 $this->mOptions = $config['options'];
20 parent::__construct( $config );
21 }
22
24 public function getConfig( &$config ) {
25 $config['options'] = $this->mOptions;
26
27 return parent::getConfig( $config );
28 }
29
31 protected function getJavaScriptClassName() {
32 return 'mw.widgets.OrderedMultiselectWidget';
33 }
34}
Widget to select multiple options from a dropdown.
Base class for widgets to select multiple users, titles, namespaces, etc.