/** * Инициализация * @throws \yii\base\InvalidConfigException */ public function init() { GridViewAsset::register($this->view); if (is_array($this->actionList) && !empty($this->actionList)) { $this->registerCheckboxes(); } if (is_array($this->customButtons) && empty($this->customButtons)) { $this->customButtons[] = [Yii::t('vendor/voskobovich/yii2-advanced-grid/interface/common', 'Create'), ['create'], ['class' => 'btn btn-default btn-xs btn-flat', 'data-pjax' => '0']]; } parent::init(); if ($this->isDraggable) { $this->disableGridSorting(); } }