Since: 1.0
Author: Kartik Visweswaran (kartikv2@gmail.com)
Inheritance: extends kartik\base\AssetBundle
Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     if (empty($this->name)) {
         throw new InvalidConfigException('The "name" property must be set.');
     }
     $css = $this->rowHighlight ? $this->rowSelectedClass : '';
     $this->_view = $this->grid->getView();
     RadioColumnAsset::register($this->_view);
     $grid = $this->grid->options['id'];
     $this->_clientVars = "'{$grid}', '{$this->name}', '{$css}'";
     $this->_clientScript = "kvSelectRadio({$this->_clientVars});";
     $this->_view->registerJs($this->_clientScript);
     $this->parseFormat();
     $this->parseVisibility();
     parent::init();
     $this->setPageRows();
 }