code: protected function createComponentStructureRecipeModal() : object
      {
          $control = $this->IStructure_RecipeModal->create();
  
  
          $control->onSave[] = function () use ($control)
          {
              $control->redrawControl('recipeForm');
  
              $this->getComponent('structureRecipeSummaryModal')->redrawControl('modal');
          };
  
  
          $control->onOpen[] = function () use ($control)
          {
              $control->redrawControl('recipeForm');
          };
  
          return $control;
      }
docs: Modální okno pro definování struktur
  @return RecipeModal