src/Component/Frontend/StructureRemoveModal/Create.php
protected function createComponentStructureStructureRemoveModal() : object
    {
        $control = $this->IStructure_StructureRemoveModal->create();

        $control->onRemove[] = function () use ($control)
        {
            $control->redrawControl();
            $this->redrawPrinters();
        };

        $control->onOpen[] = function () use ($control)
        {
            $control->redrawControl('modal');
        };

        return $control;
    }
protected function createComponentStructureStructureRemoveModal() : object
    {
        $control = $this->IStructure_StructureRemoveModal->create();

        $control->onRemove[] = function () use ($control)
        {
            $control->redrawControl();
            $this->redrawPrinters();
        };

        $control->onOpen[] = function () use ($control)
        {
            $control->redrawControl('modal');
        };

        return $control;
    }
Modální okno pro odstranění
@return StructureRemoveModal