for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* Hosting Plugin for HiPanel
*
* @link https://github.com/hiqdev/hipanel-module-hosting
* @package hipanel-module-hosting
* @license BSD-3-Clause
* @copyright Copyright (c) 2015-2016, HiQDev (http://hiqdev.com/)
*/
namespace hipanel\modules\ticket\widgets;
use hiqdev\combo\Combo;
use yii\helpers\ArrayHelper;
class TemplateCombo extends Combo
{
/** @inheritdoc */
public $name = 'template';
public $type = 'ticket/template';
public $url = '@ticket/templates';
public $_return = ['id'];
public $_rename = ['text' => 'article_name'];
public function getPluginOptions($options = [])
return parent::getPluginOptions([
'select2Options' => [
'minimumResultsForSearch' => -1,
]
]);
}