/**
  * Registers scripts
  */
 public function registerJs()
 {
     CustomFieldsAsset::register($this->view);
     $this->registerJsInitCode();
 }
 /**
  * Registers scripts
  */
 public function registerJs()
 {
     $initObject = json_encode(['uploadButtonId' => $this->buttonOptions['id'], 'fileNameAreaId' => $this->fileNameOptions['id'], 'fileInputId' => $this->options['id']]);
     CustomFieldsAsset::register($this->view);
     $this->view->registerJs("{$this->javascriptVarName} = new FileUploadButton({$initObject})");
 }