* A version of the SelectWithInputWidget, with `or` set to true.
*
* @param array $config Configuration options
- * @param array $config['textinput'] Configuration for the TextInputWidget
- * @param array $config['dropdowninput'] Configuration for the DropdownInputWidget
- * @param boolean $config['or'] Configuration for whether the widget is dropdown AND input
+ * - array $config['textinput'] Configuration for the TextInputWidget
+ * - array $config['dropdowninput'] Configuration for the DropdownInputWidget
+ * - bool $config['or'] Configuration for whether the widget is dropdown AND input
* or dropdown OR input
*/
public function __construct( array $config = [] ) {
$config
);
- // Parent constructor
parent::__construct( $config );
// Properties
public function getConfig( &$config ) {
$config['textinput'] = $this->config['textinput'];
$config['dropdowninput'] = $this->config['dropdowninput'];
+ $config['dropdowninput']['dropdown']['$overlay'] = true;
$config['or'] = $this->config['or'];
return parent::getConfig( $config );
}