Prado\Web\UI\JuiControls\TJuiDialog::addAttributesToRender PHP Метод

addAttributesToRender() защищенный Метод

Ensure that the ID attribute is rendered and registers the javascript code for initializing the active control.
protected addAttributesToRender ( $writer )
    protected function addAttributesToRender($writer)
    {
        parent::addAttributesToRender($writer);
        $writer->addAttribute('id', $this->getClientID());
        $options = TJavaScript::encode($this->getPostBackOptions());
        $cs = $this->getPage()->getClientScript();
        $code = "jQuery('#" . $this->getWidgetID() . "')." . $this->getWidget() . "(" . $options . ");";
        $cs->registerEndScript(sprintf('%08X', crc32($code)), $code);
    }