/** * Регистрация скриптов для сортировки */ protected function registerWidget() { if ($this->isDraggable) { $this->rowOptions['style'] = 'cursor: move;'; $view = $this->getView(); $view->registerJs("jQuery('#{$this->id}').SortableGridView('{$this->sortableAction}');"); SortableGridAsset::register($view); } }
protected function registerWidget() { $view = $this->getView(); $view->registerJs("jQuery('#{$this->options['id']}').SortableGridView('{$this->sortableAction}');"); SortableGridAsset::register($view); }