/**
  * @inheritdoc
  */
 protected function renderLoader()
 {
     $attr = $this->attribute;
     $hidden = !empty($this->model->{$attr});
     return Loader::widget(['baseName' => $this->getItemBaseName(false), 'fileKey' => $this->_fileKey, 'thumbKey' => $this->_thumbKey, 'data' => $this->getItemData(null), 'width' => $this->width, 'height' => $this->height, 'hidden' => $hidden, 'disabledInput' => $hidden, 'fileInputName' => $this->getFileInputName()]);
 }
 /**
  * @inheritdoc
  */
 protected function renderLoader()
 {
     return Loader::widget(['baseName' => $this->getItemBaseName(false), 'fileKey' => $this->attribute, 'width' => $this->width, 'height' => $this->height, 'multiple' => true, 'hidden' => $this->maxCount > 0 && sizeof($this->_items) >= $this->maxCount, 'disabledInput' => sizeof($this->_items) > 0, 'fileInputName' => $this->getFileInputName() . '[]']);
 }