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'); }
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'); }
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; }
public function initialize() { parent::initialize(); AssetManager::addScript(asset('packages/agelxnash/admin/js/FormItems/select.js')); }