예제 #1
0
 public function initialize()
 {
     parent::initialize();
     AssetManager::addStyle('admin::default/plugins/bootstrap-select/css/bootstrap-select.min.css');
     AssetManager::addScript('admin::default/plugins/bootstrap-select/js/bootstrap-select.min.js');
     AssetManager::addScript('admin::default/scripts/select/init.js');
 }
예제 #2
0
 public function initialize()
 {
     parent::initialize();
     AssetManager::addStyle('admin::default/plugins/select2/select2.min.css');
     AssetManager::addScript('admin::default/plugins/select2/select2.min.js');
     AssetManager::addScript('admin::default/js/formitems/select/init.js');
 }
예제 #3
0
 public function value()
 {
     $value = parent::value();
     if ($value instanceof Collection && $value->count() > 0) {
         $value = $value->lists($value->first()->getKeyName());
     }
     if ($value instanceof Collection) {
         $value = $value->toArray();
     }
     return $value;
 }
예제 #4
0
 public function initialize()
 {
     parent::initialize();
     AssetManager::addScript(asset('packages/agelxnash/admin/js/FormItems/select.js'));
 }