/**
  * Register plugin js
  */
 protected function registerPlugin()
 {
     $view = $this->getView();
     if ($this->showIndicators) {
         IndicatorAsset::register($view);
     }
     if (!empty($this->clientOptions['enableFullScreen'])) {
         FullScreenAsset::register($view);
     }
     $this->itemsComponent->registerAssets($view);
     BlueImpGalleryAsset::register($view);
     $id = $this->options['id'];
     $items = Json::encode($this->itemsComponent->getItems());
     $options = Json::encode($this->clientOptions);
     $view->registerJs("jQuery('#{$id}').blueImp({$items}, {$options});", $view::POS_END);
 }
 /**
  * Combine current items list with another items list generating component
  * @param BaseItems $baseItems
  * @return $this
  */
 public function combine(BaseItems $baseItems)
 {
     $this->_items = array_merge($this->_items, $baseItems->getItems());
     return $this;
 }