code: protected function createComponentStructureStructureModal() : object
      {
          $control = $this->IStructure_StructureModal->create();
  
  
          $control->onOpen[] = function () use ($control)
          {
              $control->redrawControl('modal');
              $control->redrawControl('title');
  
              $control->redrawControl('formNoFile');
              $control->redrawControl('formFile');
              $control->redrawControl('formMain');
          };
  
  
          $control->onSaveNoFile[] = function () use ($control)
          {
              $control->redrawControl('modal');
              $control->redrawControl('title');
  
              $control->redrawControl('formNoFile');
              $control->redrawControl('formFile');
              $control->redrawControl('formMain');
  
              $this->redrawPrinters();
          };
  
  
          $control->onSaveFile[] = function () use ($control)
          {
              $control->redrawControl('modal');
              $control->redrawControl('formFile');
  
              $this->redrawPrinters();
          };
  
  
          $control->onSaveMain[] = function () use ($control)
          {
              $control->redrawControl('modal');
              $control->redrawControl('formMain');
  
              $this->redrawPrinters();
          };
  
  
          return $control;
      }
docs: Modální okno pro nastavení hodnot struktur
  @return StructureModal