41 parent::__construct( $config );
44 $this->selectedArray = $config[
'default'] ?? [];
45 $this->inputName = $config[
'name'] ??
null;
46 $this->inputPlaceholder = $config[
'placeholder'] ??
null;
47 $this->input = $config[
'input'] ?? [];
48 $this->tagLimit = $config[
'tagLimit'] ??
null;
49 $this->allowArbitrary = $config[
'allowArbitrary'] ??
false;
50 $this->allowedValues = $config[
'allowedValues'] ??
null;
52 $textarea =
new MultilineTextInputWidget( array_merge( [
53 'name' => $this->inputName,
54 'value' => implode(
"\n", $this->selectedArray ),
57 'mw-widgets-tagMultiselectWidget-multilineTextInputWidget'
63 $this->appendContent( $textarea, $pending );
64 $this->addClasses( [
'mw-widgets-tagMultiselectWidget' ] );