/**
* @param array $config Configuration options
- * - array $config['titles'] Array of titles to use as preset data
+ * - array $config['default'] Array of titles to use as preset data
* - array $config['placeholder'] Placeholder message for input
* - array $config['name'] Name attribute (used in forms)
* - number $config['tagLimit'] Maximum number of selected titles
'name' => $this->inputName,
'value' => implode( "\n", $this->titlesArray ),
'rows' => 10,
+ 'classes' => [
+ 'mw-widgets-titlesMultiselectWidget-multilineTextInputWidget'
+ ],
], $this->input ) );
- $this->appendContent( $textarea );
+ $pending = new PendingTextInputWidget();
+
+ $this->appendContent( $textarea, $pending );
$this->addClasses( [ 'mw-widgets-titlesMultiselectWidget' ] );
}