code: protected function createComponentStructureVariableModal() : object
      {
          $control = $this->IStructure_VariableModal->create();
  
          $control->onOpen[] = function () use ($control)
          {
              $control->redrawControl('modal');
          };
  
          $control->onSave[] = function () use ($control)
          {
              $control->redrawControl('modal');
  
              $this->getComponent('structureVariableSummaryModal')->redrawControl('modal');
              $this->getComponent('structureRecipeSummaryModal')->redrawControl('modal');
          };
  
          return $control;
      }
docs: Editace proměnných ve struktuře
  @return VariableModal