46 parent::__construct( $config );
49 $this->selectedArray = $config[
'default'] ?? [];
50 $this->inputName = $config[
'name'] ??
null;
51 $this->inputPlaceholder = $config[
'placeholder'] ??
null;
52 $this->input = $config[
'input'] ?? [];
53 $this->tagLimit = $config[
'tagLimit'] ??
null;
54 $this->allowArbitrary = $config[
'allowArbitrary'] ??
false;
55 $this->allowReordering = $config[
'allowReordering'] ??
true;
56 $this->allowedValues = $config[
'allowedValues'] ??
null;
58 $noJsFallback = (
new Tag(
'div' ) )
59 ->addClasses( [
'mw-widgets-tagMultiselectWidget-nojs' ] )
64 $this->appendContent( $noJsFallback, $pending );
65 $this->addClasses( [
'mw-widgets-tagMultiselectWidget' ] );