Since: 1.0
Author: Kartik Visweswaran (kartikv2@gmail.com)
Inheritance: extends kartik\base\AssetBundle
 /**
  * @inheritdoc
  * @throws InvalidConfigException
  */
 public function init()
 {
     parent::init();
     Config::checkDependency('editable\\Editable', 'yii2-editable', 'for GridView EditableColumn');
     $this->_css = 'kv-edcol-' . hash('crc32', uniqid(rand(1, 100), true));
     if ($this->refreshGrid) {
         EditableColumnAsset::register($this->_view);
     }
 }
Beispiel #2
0
 /**
  * @inheritdoc
  * @throws InvalidConfigException
  */
 public function init()
 {
     parent::init();
     \kartik\base\Config::checkDependency('editable\\Editable', 'yii2-editable', 'for GridView EditableColumn');
     $this->_css = 'kv-edcol-' . hash('crc32', uniqid(rand(1, 100), true));
     if ($this->refreshGrid) {
         EditableColumnAsset::register($this->_view);
         $id = $this->grid->options['id'];
         $this->_view->registerJs("kvRefreshEC('{$id}','{$this->_css}');");
     }
 }